This commit is contained in:
Joaquin Gottlebe
2025-07-30 15:57:48 +02:00
parent e49fcfac46
commit a639c34cee
273 changed files with 20151 additions and 0 deletions
@@ -0,0 +1,25 @@
#include <stdio.h>
#include <stdlib.h>
int main() {
float n;
int rvalue;
int c;
while(1){
printf("Geben Sie eine Zahl ein: ");
rvalue = scanf("%f", &n);
if (rvalue == 1){
break;
} else {
printf("Fehler: Bitte geben Sie eine gueltige Zahl ein.\n");
if (rvalue == 0) {
do {
c = getchar();
} while (c != '\n');
}
}
}
printf("Die Zahl ist %f\n", n);
return 0;
}