| |
Program to find age in years,months,days when no.of days are given
main()
{
int nod,y,m,d;
clrscr();
printf("\nEnter the total no. of days: ");
scanf("%d",&nod);
y=nod/360;
nod=nod%360;
m=nod/30;
d=nod%30;
printf("\nYears : %d",y);
printf("\nMonths : %d",m);
printf("\nDays : %d",d);
getch();
}
Please send comments to vgdarur.javafive@blogger.com
|