0
Why output this code?
int x = 10; for ( ; ; ) { if (x>0) { Console.WriteLine(x); x -= 3; }else break; this code output 10 7 4 1 but int x = 10; for ( ; ; ) { if (x>0) { Console.WriteLine(x); x -= 3; }} this code output anything loop is infinite but why output anything? i think this code output: 10 7 4 1 ( for statement loops continue
1 Answer
+ 1
I guess that'sâ because your program runs on a server and the server is waiting for your program to finish before to send you the result.