first commit!

This commit is contained in:
2025-02-06 12:54:34 +02:00
commit 37f9a3d138
24 changed files with 693 additions and 0 deletions

10
line_count.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
int main() {
int chars, lines, character;
for (chars = 0, lines = 0; (character = getchar()) != EOF; ++chars)
if (character == '\n')
++lines;
printf("\n%d lines were inputted\n", lines);
}