Code for Program to calculate months in a provided number of days from user in C Programming
#include<stdio.h>
#include<conio.h>
main()
{
int months, days;
clrscr();
printf("Enter days\n");
scanf("%d",&days);
months = days / 30;
days = days % 30;
printf("Months +%d Days = %d", months, days);
getch();
return 0;
}