Browse Source

refactoring: funktion stunden

remotes/origin/ageinsecondsdev
fdai7754 11 months ago
parent
commit
b6391bbfa8
  1. 7
      src/ageinseconds.c

7
src/ageinseconds.c

@ -11,6 +11,11 @@ int minuten(int jahre) {
return erg;
}
int stunden(int jahre) {
int erg = jahre * 8760;
return erg;
}
int run_ageinseconds() {
int age;
@ -19,7 +24,7 @@ int run_ageinseconds() {
printf("-------------------------------------------------");
printf("\nDu bist: %d Sekunden alt", sekunden(age));
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-------------------------------------------------");
return 0;
}
Loading…
Cancel
Save