Added a solution for exercise 1.12. Skipped 1.10 and 1.11 due to simplicity.

This commit is contained in:
Reina Harrington-Affine 2026-04-27 16:49:08 +00:00
parent e67db44312
commit a7ee3c350e

12
KNR Redux/ex1-12.c Normal file
View file

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