In C Constantly ask the user for a number End the program wh
In C++ Constantly ask the user for a number. End the program when zero is entered.
Solution
In c++ program there is a expression called test which is always stays as true. To run the any program in c++ at this stage the user is asked to entr a number then the user enters the number other than the 0, it takes in to it and again asks the user to enter another number. This will continue till 0 is given. If once the number 0 is given, the test expression becomes false and finally it will terminate the loop and displays the output.
