/*PROGRAM TO CONVERT AGE FROM YEARS INTO SECONDS*/
#include<stdio.h>
#include<conio.h>
void main()
{
long int a,age;
clrscr();
printf(“Enter your age :”);
scanf(“%ld”,&age);
if(age<=0)
printf(“Enter valid data only\n”);
else
{
a=(age*365*24*60*60);
printf(“Before conversion:\n”);
printf(“\tAge in years is: %ld\n”,age);
printf(“After conversion:\n”);
printf(“\tAge in seconds is: %ld\n”,a);
}
getch();
}