This commit is contained in:
deck committed 2026-10-03 20:32:17 +02:00
commit 0c40ea3e9e
83 files changed
+418

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#include <stdio.h>
#include <string.h>
int main(void) {
/* Already done for you: read one line of text into name and drop the
Enter key from its end. The Strings lesson explains how this works. */
char name[256] = "";
if (fgets(name, sizeof name, stdin) == NULL) {
name[0] = '\0';
}
name[strcspn(name, "\r\n")] = '\0';
/* TODO: print the two lines described in the exercise.
Use a %s placeholder for name; do not type any name yourself. */
return 0;
}