|
|
@ -1,8 +1,8 @@ |
|
|
|
#include <stdio.h> |
|
|
|
#include "ageinseconds.h" |
|
|
|
|
|
|
|
int sekunden(int jahre) { |
|
|
|
int erg = jahre * 31536000; |
|
|
|
float sekunden(float jahre) { |
|
|
|
float erg = jahre * 31536000; |
|
|
|
return erg; |
|
|
|
} |
|
|
|
|
|
|
@ -73,7 +73,7 @@ int run_ageinseconds() { |
|
|
|
printf("Dein Alter: "); |
|
|
|
scanf("%d", &age); |
|
|
|
printf("-------------------------------------------------"); |
|
|
|
printf("\nDu bist: %d Sekunden alt", sekunden(age)); |
|
|
|
printf("\nDu bist: %0.f Sekunden alt", sekunden(age)); |
|
|
|
printf("\n-------------------------------------------------"); |
|
|
|
printf("\nDas sind %d in Minuten und %d in Stunden", minuten(age), stunden(age)); |
|
|
|
printf("\n-------------------------------------------------\n"); |
|
|
|