|
@ -11,6 +11,11 @@ int minuten(int jahre) { |
|
|
return erg; |
|
|
return erg; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int stunden(int jahre) { |
|
|
|
|
|
int erg = jahre * 8760; |
|
|
|
|
|
return erg; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int run_ageinseconds() { |
|
|
int run_ageinseconds() { |
|
|
int age; |
|
|
int age; |
|
|
|
|
|
|
|
@ -19,7 +24,7 @@ int run_ageinseconds() { |
|
|
printf("-------------------------------------------------"); |
|
|
printf("-------------------------------------------------"); |
|
|
printf("\nDu bist: %d Sekunden alt", sekunden(age)); |
|
|
printf("\nDu bist: %d Sekunden alt", sekunden(age)); |
|
|
printf("\n-------------------------------------------------"); |
|
|
printf("\n-------------------------------------------------"); |
|
|
printf("\nDas sind %d in Minuten und %d in Stunden", minuten(age), age * 365 * 24); |
|
|
|
|
|
|
|
|
printf("\nDas sind %d in Minuten und %d in Stunden", minuten(age), stunden(age)); |
|
|
printf("\n-------------------------------------------------"); |
|
|
printf("\n-------------------------------------------------"); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |