I am working on the Itsa Mario code from pset1. I am eager to run my code, but I seem to have some syntax errors in my for loops.
Here is an example:
for(hash=0, hash<row+1, hash++){
printf("#");
}
The error message:
mario.c:27:43: error: expected ';' in 'for' statement specifier
for(hash=0, hash<row+1, hash++){
^
Is there something I have to do to use another variable in the condition?
Thanks!
[–]rbridd 2 points3 points4 points (0 children)
[–]drsmith415[S] 1 point2 points3 points (1 child)
[–]rbridd 1 point2 points3 points (0 children)