+ 2
Can variable changes its value while the program is running
3 Answers
+ 6
Yes, that is the whole point of having them.
int age = 6;
age = 7;
age += 3;
This creates an integer named âageâ which has the value 6, it changes the value to 7, then adds 3 to the value. It is 10 at the end.
+ 2
yes right
0
var number = 1;
for (int i = 0; i < 10; i++)
number++;
Console.Write(number);
// run and see what happens