To compute the seconds from a given age using C


Levels of difficulty: / perform operation:

C program to compute the seconds from a given age.

C Program

#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();
}


Output







Quantitative Aptitude
Reasoning
Programming
Interview