Implemented exercise 1-6 for additional testing and modification.

This commit is contained in:
Reina Harrington-Affine 2025-08-07 23:25:33 +00:00
parent fc658ddb69
commit 79b0940502

11
KNR C/ex1_6-getchar.c Normal file
View file

@ -0,0 +1,11 @@
#include <stdio.h>
/*Copy input to output; KNR C exercise 1-6*/
int main(){
int c;
while ((c = getchar()) != EOF)
putchar (c);
return 1;
}