converts earth days into Jovian years
#include <stdio.h>
int main(void)
{
float earth_days; /* number of earth days */
float jovian_years; /* equivalent number of Jovian years */
printf("Enter number of earth days: ");
scanf("%f", &earth_days);
jovian_years = earth_days / (365.0 * 12.0);
printf("Equivalent Jovian years: %f", jovian_years);
return 0;
}
Related examples in the same category