Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a;
- cin >> a;
- switch(a)
- {
- case '1':
- cout << "mot";
- break;
- case '2':
- cout << "hai";
- break;
- case '3':
- cout << "ba";
- break;
- case '4':
- cout << "bon";
- break;
- case '5':
- cout << "nam";
- break;
- case '6':
- cout << "sau";
- break;
- case '7':
- cout << "bay";
- break;
- case '8':
- cout << "tam";
- break;
- case '9':
- cout << "chin";
- break;
- default:
- cout << "Chua nhap so !!";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement