Feed Headline Animator

Write a program to input the age of a person in years. Convert the age into months and days and print the result in the center of the screen

Main()
{
long int age,mon,days;
clrscr();
printf(“Enter age in years ?”);
scanf(“%d”,& age );
mon=age*12;
days=age*365;
gotoxy(35,12);
printf(“Age in months = %d”, mon);
gotoxy(35,13);
printf(“Age in days =%d”,days);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment