Monday, 15 September 2014

while loop

16/09/14


In this code, the program is in a while loop, such that it will print the number of line, then the actual line, until "lines" is no longer <5 .


In this while loop, it does the same thing only it doesn't print the number of the line, and it goes up to 50 lines, and also a new line for each print.

No comments:

Post a Comment