while loops are great for when you don't know how many times the program will run, right?
For example, a program that asks the user to do some calculation, then asks him/her to press 0 to quit. (am i right here?)
do while loops are executed once, and are useful for data validation right? Can you possibly give a scenario/example of this?
and for while loops are good for when you know the actual quantity or number of times you need to check something, right? Can someone give a scenario of this please?