Statistics |
---|
Total online: 1 Guests: 1 Users: 0 |
|
Variable Declaration
We have to declare all variables and constants, before we can use them. When we declare a variable, we specify its data type.
For example, to declare a variable with data type integer, float, and character, we simply write:
int sum;
float area;
char letter;
or we can group similar data type variables in one list such as:
int n1, n2, sum, diff;
float area, fah, celsius, divided;
char letter, symbol, initial;
|
Calendar |
---|
« April 2024 » | Su | Mo | Tu | We | Th | Fr | Sa | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
|
|