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, day;
clrscr();
printf(“Enter age in years?”);
scanf(“%d”,&age);
mon=age * 12;
days= age *365;
gotoxy(365,12);
printf(“Age in days=%d”, days);
}


Posted by: Wasim Javed

No comments:

Post a Comment