loop question

So I finshed my program for the paint/wallapaper calc, Now Im wondering how do I put a loop in at the end to make it repeat the processing so it'll run the program again.
1
2
3
4
5
6
7
8
9
int main(){
   char choice;
   do{
      //your program goes here
      std::cout << "again? ";
      std::cin >> choice;
   while(choice == 'y');
   return 0;
}
Topic archived. No new replies allowed.