Friday, November 2, 2007
Loop Examples
I could imagine using a while loop, for example, in a calculation program. If the user wants to make another of the same calculation with different numbers, he simply chooses the option to continue. For example make a char cont=y; outside the while loop and if char!='y', exit the loop.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment