Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Please, Don't Miss Visit My Site:
- https://global-prog.com
- */
- #include <iostream>;
- #include <string>;
- using namespace std;
- int RV;
- string Name;
- string Age;
- string Address;
- void main()
- {
- cout << "*************************\nEnter the following info.\n*************************\n"<<endl;
- for (RV = 1; RV <= 3; RV++) {
- switch (RV)
- {
- case (1):
- cout << "Enter Name : ";
- cin >> Name;
- break;
- case (2):
- cout << "Enter Age : ";
- cin >> Age;
- break;
- case (3):
- cout << "Enter Address : ";
- cin >> Address;
- break;
- default:
- cout << " Error Undefined Input !!!" << endl;
- break;
- }
- }
- cout << "\n********************\nYour Information Is\n********************\n"<<endl;
- cout << "Name : " << Name << endl;
- cout << "Age : " << Age << endl;
- cout << "Address : " << Address <<"\a\a\a"<< endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement