+ 1
For statement question
When I try to run a program it says I need parenthesis after each ‘;’ in my for statement.... I swear the syntax for ‘for’ is for (init; condition; increment) https://code.sololearn.com/curJ4o5iRsO1/?ref=app
2 odpowiedzi
+ 6
Nothing serious
for (int hour = 1;
distance; // wrong
hour <= time;
hour++)
4 expressions instead of 3
+ 1
hey i ended up getting rid of the distance; and it worked out thank you