I need help making for statements. I just wanted to mess around and make a program where you would enter a number and a for statement would produce something like this:
for (num < 100) { /*stuff*/ } is not a valid for loop. while (num < 100) { /*stuff*/ } would be valid syntax, and would be read out loud as "while num is less than 100, do stuff (and loop)"
But even if you had a while loop, the problem is that you don't ever change the value of num inside the loop. Upon entering the loop, num will always be less than 100, because there is no way to make it greater than 100.
But... forget about the number 100. That has nothing to do with your input or your output.
There are different options here, but one way is to change the for loop to a while loop, and make it something like this