Tuesday 1 October 2013

C PROGRAM TO FIND MOTH AND DAY FROM N DAYS

#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();
}

No comments:

Post a Comment