Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int position;
- cin >> position;
- switch (position)
- {
- case 1:
- cout << "You get the gold medal" << endl;
- break;
- case 2:
- cout << "You get the silver medal" << endl;
- break;
- case 3:
- cout << "You get the bronze medal" << endl;
- default:
- cout << "No medal awarded" << endl;
- break;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment