Opps, forgot that was an infinite loop XD.
Edit: if you add num++; in the while loop that will fix the infinite loop (increments num by 1 each time).
Type: Posts; User: D.K
Opps, forgot that was an infinite loop XD.
Edit: if you add num++; in the while loop that will fix the infinite loop (increments num by 1 each time).
while (condition) {
statement;
}
Basically if the condition is true then the statements are executed until the condition becomes false.
Example: