refactor various files

This commit is contained in:
2025-04-28 16:59:44 +02:00
parent 5049c3ec13
commit 05c830c8e2
97 changed files with 513 additions and 2676 deletions

22
S1/GdCP/uebung/sms.c Normal file
View File

@@ -0,0 +1,22 @@
#include<stdio.h>
#include<ctype.h>
#include<string.h>
int main() {
char s[161], m1[161], m2[161];
int c1 = 0, c2 = 0;
fgets(s, sizeof(s), stdin);
for (int i = 0; i < strlen(s); i++) {
if (isalpha(s[i])) {
if (isupper(s[i])) {
m1[c1++] = s[i];
} else m2[c2++] = s[i];
}
}
printf("Nachricht an Toni: %s\n", m1);
printf("Nachricht an Tomke: %s\n", m2);
}