Computer Science, asked by utkarsh9572, 1 year ago

write a programme to enter number of days and display the year ,month and remaining days


(python programme ) please explain with proper steps ​

Answers

Answered by jkutz
1

// C program to find the number of days in a given month

#include<stdio.h>

int main()

{

//fill the code

int year, month;

scanf(“%d %d”,&month,&year);

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

printf(“Number of days is 31”);

else if((month == 2) && (year%4 == 0) || ((year%100 == 0) &&(year%400 == 0)))

{

printf(“Number of days is 29”);

}

else if(month == 2)

{

printf(“Number of days is 28”);

}

else

printf(“Number of days is 30 “);

return 0;

}

Mark me as BRAINLIEST

Answered by bijin1628
0

Answer:

I don't know the answer

Similar questions