Add first assignments.

This commit is contained in:
paulusja committed 2026-10-07 13:48:02 +02:00
1 parent 6964824711
commit cc5d131072
13 files changed
+525

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#include <stdio.h>
#include <string.h>
void showSecretInformation()
{
printf("Erfolg!\n");
}
int checkPassword()
{
char buffer[5];
printf("Bitte Passwort eingeben: ");
scanf("%s", buffer);
return strcmp(buffer, "pass") == 0;
}
int main()
{
if(checkPassword())
showSecretInformation();
else
printf("Falsches Passwort!\n");
return 0;
}