C program to check display days and month
main()
{
int months, days;
clrscr();
printf("ENTER DAYS: ");
scanf("%d", &days);
months=days/30;
days=days%30;
printf("\nMONTHS = %d DAYS = %d", months, days);
getch();
}
OUTPUT :
Enter days: 35
Months=1 Days=5