Help with looping

This is a discussion on Help with looping within the C++ Programming forums, part of the General Programming Boards category; I wrote a switch program that performs 4 basic math operations:
#include <iostream.h>
int main(){
int ch;
float m1,m2,mt,d1,d2,dt,a1,a2,at,s1,s2,st;
cout<<"Please ...

Can anybody tell me what I should do in order for the program to ask if you wish to perform any further calculations. If YES, how do I make it, so that the given answer will be taken as the first number to be used in the next calculation. and NO ends it. Any help would be greatly appreciated. THX

I think I mislead u and I apoligize for it. The program u wrote does not ask wether or not the user wants to continue using the program or not (If answer is YES, use the previous answer as the first number for the next calculation). Pls help. Thx anyways .

This is your code with a do-while loop and a your little continue thing... I made the spaces a little different (easier for me to read) so change 'em back if you don't like them. Notice the clrscr(); command after the do{ and the cont=getch(); statement. The first clears the screen and the second reads a character inputted by the user. The do-while loop is placed around the Menu and switch statement so that if the user wants to make another calculation, he can make a choice again.