Naming variables & Division

Here I have two nitch like naming variables along with division. how to use a for loop that prints out the numbers 5 to 100, counting by fives? i`m new too c++, i`ll appreciate ur help bcause i learn something from that. i have to name some variables, in the exercise they give me the type of variable and i have to name it, this are my answers.

a) int a, b; int a; int b;
b) float x, y, z;
c) char a, b, c;
d) long accountant;
e) string hello;
f) int f (10); int f = 10;
g) float g (2.25); float g = 2.25;
h) char op ('S') ; char op = 'S' ;

in the exercises a, f ,g , h i found that it could be done in 2 ways so i wrote both ways.

please let me know if i made mistakes and the reason.
thanks


http://leinster-vs-ulster-live-stream.blogspot.com/
Topic archived. No new replies allowed.