Program to Print number of days in the given month number| Learn Programming in C

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Wow ma'am your voice is too clear and so sweet...

Lucknow.
Автор

Ma'm voice and video clarity is not there pls look into that ma'm

sreenureddyadem
Автор

/*To input a no, from 1-12 and print no. of days in the corresponding month*/
#include<stdio.h>
int main()
{
int a, choice;
printf("Enter a number between (1-12)\n");
scanf("%d", &choice);
switch (choice)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
printf("31 days");
break;
case 2:
printf("28/29 days");
break;
case 4:
case 6:
case 9:
case 11:
printf("30 days");

}
return 0;
}

muzicArt
Автор

फरवरी में 28 दिन होते हैं या 29 दिन इसके लिए तो बनाना था

ravinderchauhan