Quote:
Originally Posted by V1ceC1ty
That's exactly what i want but i need to explain how to make it restart/loop again.
|
We are going to be creating a program which works in a loop, what this means is that the program will repeat it's routine an infinite number of times until the programs process is closed by the user or system. The program will consist of a user input which will take two numbers from the user and add these numbers together to produce a value, if the value is less than twenty and greater than zero then the program will display a dialog to the user but if the value is greater than nineteen or less than one then the dialog will not be shown to the user. The program will now repeat this routine following the same pattern each time until it's closed, this is an unconditional loop and infinite as explained above.
Maybe something like that or do you mean you need to explain how a loop actually works as in conditionals and execution of the routines like a while(), program flow and all that?