Enter number of days and get converted into number of days and month
#include<stdio.h>
int main(){
int a,b,c; //a,b,c are variable taken as integer as number of days cant be in decimal
printf("Enter the day: ");
scanf("%d",&a); //Enter the number of days
b = a%30;// %is used to get the reminder after devision
c = a/30;// /is used to get the quotient after devision
printf("No of month is %d",c);//This print the number of months
printf("No of days is %d",b);//this shows number of days
}