Learn to Program with ZedLX

Free Online Programming Course for Beginners

while Loop and Keyboard [4/11]

This is a variation of the previous program. It clears the screen by calling the clearScr function on each iteration of the while loop.

After running the program, modify it so that it prints out the square of variable i on the end of program execution.

Loading...