Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- Bai1()
- {
- printf ("Hello World");
- }
- Bai2()
- {
- printf ("Goodbye");
- }
- debai()
- {
- int a;
- printf ("Ban chon bai: ");
- scanf ("%d", &a);
- switch (a)
- {
- case 1:
- {
- Bai1();
- break;
- }
- case 2:
- {
- Bai2();
- break;
- }
- case 3:
- {
- exit(0);
- }
- default:
- printf ("Ban nhap sai");
- break;
- }
- }
- int main ()
- {
- debai();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement