programming-examples/c/_Basic/To compute the seconds from a given age using C.c

12 lines
269 B
C
Raw Normal View History

2019-11-15 12:59:38 +01:00
#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();
}