3.
Build and run the application.
4.
After you type the first date, you are asked whether you want to break or continue. Press X (or
any other key except B or C) and then press Enter to display the date as normal.
5.
Type the second date, and then press C followed by Enter, which causes the continue state-
ment to be executed.
The continue statement abandons the current iteration without displaying your date. Instead,
you are asked to type the third date.
6.
Type the third date and then press B, which causes the break statement to be executed. The
break statement terminates the entire loop.
Do'stlaringiz bilan baham: |