Using this code: (int i=1;i<3;i++) will not produce the number 3 ever, because your control statment runs the loop only when 'i' is LESS than 3. If you want to produce 3, your code should look like:...
Type: Posts; User: `99 Sable Ent.
Using this code: (int i=1;i<3;i++) will not produce the number 3 ever, because your control statment runs the loop only when 'i' is LESS than 3. If you want to produce 3, your code should look like:...
Thank you, this has been very helpful.
Hi, I'm fairly new to Programming, currently taking my first course in it. For one of the assignments I have to do, I'm using nested loops to find the safe stopping distance of a car based on it's...
And from what I know, the variable you are changing the value of should come first, like:
a=3+4,
not
3+4=a.
I have to do the Exact same assignment for one of my classes. I'm not sure if you know this or not, just trying to be helpful, but it is possible to only need one function for adding and subtracting,...