//dowhile_ex.cpp //do while loop example #include <iostream>using namespace std; int main() { char again; //to ask user to repeat int num; //for user input do { cout << "\nEnter a number :"; cin >> num; cout << "\n\tYour number was :" << num << endl; cout << "\n\t\tWould you like to enter another number?\n"; cin >> again; } while (again =='y'); cout << "\n\aOK, we're all done!" << endl; return 0; } //end of main