Browse Source

print funktion mit sekunden ausgabe

remotes/origin/ageinsecondsdev
fdai7754 11 months ago
parent
commit
70b26b6e45
  1. 12
      src/ageinseconds.c

12
src/ageinseconds.c

@ -1 +1,13 @@
#include <stdio.h>
#include "ageinseconds.h" #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;
}
Loading…
Cancel
Save