tranght

Untitled

Feb 21st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. void main()
  4. {
  5. int thang;
  6. printf("nhapthang: ");
  7. scanf_s("%d", &thang);
  8. if (thang == 1 || thang == 5 || thang == 7 || thang == 7 || thang == 8 || thang == 10 || thang == 12)
  9. printf("thang %d co 31 ngay",thang);
  10. else if (thang == 2)
  11. printf("thang %d co 28 ngay",thang);
  12. else
  13. printf("thang %d co 30 ngay",thang);
  14. system("pause");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment