/*********************************************************** add.ch Introduction to Ch This program introduces the need to declare variables before using them. The printf feature is also introduced so that users can print to the screen. ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ int x, y, z; // initialize variables x = 4; // assign variable values y = 2; z = 6; // the value of 6 is assigned to z z = 2; // z no longer holds the value 6 // the value of 2 is assigned to z printf("%d\n", x+y+z); // prints the sum of x, y, and z to the screen