Long time no see

This commit is contained in:
2026-02-21 10:47:00 +07:00
parent 0d54fe176e
commit b7df98a55c
198 changed files with 3249 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
#include <stdio.h>
int main() {
int ch,sp,n,s;
sp = n = s = 0;
while((ch = getchar())!='#'){
switch(ch){
case ' ': n++; break;
case '\n': sp++; break;
default: s++; break;
}}
printf("spaces: %d\tnewln: %d\tsymb: %d\n",sp,n,s);
return 0;
}