text: question on output? i always have a hard time understand the out puts of these types of problems. can some explain in a simple way to try and remember? what would the out put of this be and explain to me how. please....  int x = 1;  while   (x  <  5)     x++ ;     console.write(x); from the console.write(x) command, i'm assuming your using c# as your programming language of choice.  in any case, all of these answers are wrong.  the while loop only applies to the x++; statement. not the console.write(x); statement.  when the loop begins x will be equal to 1.  the loop will increment x until x is no longer less than 5.  x will be equal to 5 when the loop exits.  when the console.write(x); statement executes the number 5 will be printed to the screen.  -------  to get x to be printed to the screen multiple times, the code would need to be modified to this:  int x = 1; while(x < 5) { x++; console.write(x); }  the output of the program will be "2345"  -----  to get "2, 3, 4, 5", the console.write(x); statement would have to change dramatically.  it would have to some how know when to put the comas and the spaces  ------  to get 2, 3, 4 and 5 printed on seperate lines, the console.write(x); statement would have to change to console.writeline(x);  ------  hope that helps