Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Nhap vao thang cua 1 nam cho biet thang do thuoc quy may?
- // Khai bao thu vien
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- int thang;
- scanf("%d", &thang);
- if( thang==0|| thang >12||thang<0)
- {
- printf("Thang khong hop le");
- }
- else
- {
- switch(thang)
- {
- case 1: case 2: case 3: printf(" Quy 1\n");break;
- case 4: case 5:case 6: printf(" Quy 2\n");break;
- case 7: case 8: case 9: printf(" Quy 3\n");break;
- case 10: case 11: case 12: printf(" Quy 4\n");break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement