Can somebody tell me the basic difference btween if and while statements????????????
an if statement will execute once if the condition is true.
a while statement will execute while the condition is true ... so it will keep looping until the condition is false
http://cplusplus.com/doc/tutorial/control/
Last edited on