Abilash and Yazhini are friends who love to go for outing every month.
#include <stdio.h>
int main()
{int month;
scanf("%d",&month);
switch(month){
case 1:
printf("31 days");
break;
case 2:
printf("28/29 days");
break;
case 3:
printf("31 days");
break;
case 4:
printf("30 days");
break;
case 5:
printf("31 days");
break;
case 6:
printf("30 days");
break;
case 7:
printf("31 days");
break;
case 8:
printf("30 days");
break;
case 9:
printf("30 days");
break;
case 10:
printf("31 days");
break;
case 11:
printf("30 days");
break;
case 12:
printf("31 days");
break;
}
return 0;
}
0 Comments
if you have any doubt, plz let me know