Understand All about Windows 7 Tips and Tricks, Fashion,Technology, Sports, Games,Windows 8 ,Computer Science ,Essay ,Application and more useful content here, Simply to Read and Enjoy it.
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); }
No comments:
Post a Comment