programming-examples/c/Basic/To compute the seconds from a given age using C.c
2019-11-18 14:44:36 +01:00

12 lines
269 B
C

#include <stdio.h>
#include <conio.h>
void main()
{
long unsigned age,sec;
clrscr();
printf("\nENTER YOUR AGE: ");
scanf("%lu",&age);
sec=age*365*24*60*60;
printf("\nAGE IN SECONDS: %lu",sec);
getch();
}