Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- unsigned long long secToYears = 31536000;
- unsigned long long inputSec = 0;
- double changeToYears = 0;
- double jupiterL = 12;
- double totalLiveInJupiter = 0;
- printf("Input desire sec: ");
- scanf("%d", &inputSec);
- changeToYears = inputSec / secToYears;
- totalLiveInJupiter = changeToYears / jupiterL;
- printf("Your years on Juputer is: %f", totalLiveInJupiter);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement