Guest User

Untitled

a guest
Oct 23rd, 2019
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. #include <math.h>
  4.  
  5. int main(){
  6. int thang, soNgay;
  7. string chuThang;
  8. cout<<"thang = "; cin>>thang;
  9. switch (thang){
  10. case 1:{
  11. chuThang = "Thang mot";
  12. soNgay = 31;
  13. break;
  14. }
  15. case 2:{
  16. chuThang = "Thang hai";
  17. soNgay = 28;
  18. break;
  19. }
  20. case 3:{
  21. chuThang = "Thang ba";
  22. soNgay = 30;
  23. break;
  24. }
  25. case 4:{
  26. chuThang = "Thang bon";
  27. soNgay = 31;
  28. break;
  29. }
  30. case 5:{
  31. chuThang = "Thang nam";
  32. soNgay = 30;
  33. break;
  34. }
  35. case 6:{
  36. chuThang = "Thang sau";
  37. soNgay = 31;
  38. break;
  39. }
  40. case 7:{
  41. chuThang = "Thang bay";
  42. soNgay = 30;
  43. break;
  44. }
  45. case 8:{
  46. chuThang = "Thang tam";
  47. soNgay = 31;
  48. break;
  49. }
  50. case 9:{
  51. chuThang = "Thang chin";
  52. soNgay = 31;
  53. break;
  54. }
  55. case 10:{
  56. chuThang = "Thang muoi";
  57. soNgay = 30;
  58. break;
  59. }
  60. case 11:{
  61. chuThang = "Thang muoi mot";
  62. soNgay = 31;
  63. break;
  64. }
  65. case 12:{
  66. chuThang = "Thang muoi hai";
  67. soNgay = 30;
  68. break;
  69. }
  70. }
  71. cout<<chuThang<<" co "<<soNgay;
  72. return 0;
  73. }
RAW Paste Data