added ws202425 courses

This commit is contained in:
2024-11-14 13:11:04 +01:00
parent 800282c2e8
commit beb31897b1
461 changed files with 20368 additions and 0 deletions
@@ -0,0 +1,29 @@
#include <stdio.h>
#include <stdlib.h>
#define NL printf("\n");
#define LEN 1000
int main(void){
int ar[LEN];
for(int i = 0; i < LEN; i++){
ar[i] = (i + 1) * (i + 1);
}
while(1){
printf("Geben Sie eine ganze Zahl zwischen 1 und %i ein: ", LEN);
int input;
scanf("%i", &input);
if(input == 0){
break;
}
else if(input < 1 || input > LEN) {
continue;
}
printf("Quadrat von %i: %i", input, ar[input - 1]);
NL
}
}