From 70b26b6e454fd4fc39318995746c57bcccc5c6c8 Mon Sep 17 00:00:00 2001 From: fdai7754 Date: Sun, 4 Feb 2024 15:38:31 +0100 Subject: [PATCH] print funktion mit sekunden ausgabe --- src/ageinseconds.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ageinseconds.c b/src/ageinseconds.c index 9fad0cf..816c666 100644 --- a/src/ageinseconds.c +++ b/src/ageinseconds.c @@ -1 +1,13 @@ +#include #include "ageinseconds.h" + +int run_ageinseconds() { + int age; + + printf("Dein Alter: "); + scanf("%d", &age); + printf("-------------------------------------------------"); + printf("\nDu bist: %d Sekunden alt", age * 365 * 24 * 60 * 60); + printf("\n-------------------------------------------------"); + return 0; +}