jamesrdaza

Untitled

Sep 28th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int position;
  9.  
  10. cin >> position;
  11.  
  12. switch (position)
  13. {
  14. case 1:
  15. cout << "You get the gold medal" << endl;
  16. break;
  17. case 2:
  18. cout << "You get the silver medal" << endl;
  19. break;
  20. case 3:
  21. cout << "You get the bronze medal" << endl;
  22. default:
  23. cout << "No medal awarded" << endl;
  24. break;
  25. }
  26.  
  27. system("pause");
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment