The main function of your program will contain calls to the following functions:
1st function (this function will return an integer):
Main will call this function to prompt the user to input the ,this function will scan for the value and return it to main.
2nd function (this function will have one argument):
Main will call this function and pass the integer previously entered. This function will generate output described in exercise You must also output the value of the integer passed to the function.
Example output for a person 1 year old: (notice three values are being output in the following line,
Your age in years: 1, age in seconds: 31560000.000 or 3.156e+07.
#include <stdio.h>
#define AGE_IN_SECOND 31560000
int main(void)
{
double SECOND,
YEAR;
printf("Enter YOUR AGE IN YEAR> ");
scanf("%lf", &YEAR);
SECOND = AGE_IN_SECOND * YEAR;
printf("That equals %f SECONDS.\n", SECOND);
return (0);
}
I AM HAVING PROBLEM DESIGNING OR WRITING THE FUNCTIONS TO CALL..
WORKING PROBLEM FOR NOW