#include<stdio.h>
void main()
{
int n;
clrscr();
printf("enter no of days");
scanf("%d",&n);
printf("no. of months is %d\n",(n/30));
printf("no. of days remaining is %d",(n%30));
getch();
}
void main()
{
int n;
clrscr();
printf("enter no of days");
scanf("%d",&n);
printf("no. of months is %d\n",(n/30));
printf("no. of days remaining is %d",(n%30));
getch();
}
No comments:
Post a Comment