eigth exercise

This commit is contained in:
celso 2022-11-05 17:51:56 -03:00
parent 37612f3825
commit a1dbca90e4
1 changed files with 12 additions and 0 deletions

12
1-8.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main() {
int c, nb;
nb = 0;
while ((c=getchar()) != EOF){
if (c == '\t' || c == '\n' || c == ' '){
++nb;
}
}
printf("%d\n", nb);
return 0;
}