Computer Science, asked by man7190, 1 year ago

convert this to " if " statement

Attachments:

Answers

Answered by garywalter1221
2

main()

{

   int m;

   clrscr();

printf("Enter any month :");

scanf('%d",&m);

if(m==1||m=3||m==5||m==7||m==8||m==10||m==12)

printf("31 days");

else if(m==4||m==6||m==9||m==11)

printf("30 days");

else if(m==2)

printf("28/29 days");

getch();

}

hope this will help u


man7190: thanks
garywalter1221: u r welcome
Similar questions