Added a solution of 1-9 developed collaboratively by both of us <3

This commit is contained in:
Reina Harrington-Affine 2025-08-14 07:15:51 +00:00
parent 7d26e0ffc7
commit 84a9263691

16
KNR C/avas_1_9.c Normal file
View file

@ -0,0 +1,16 @@
#include <stdio.h>
int main() {
int last = 0;
while (last != EOF) {
int curr = getchar();
if ((curr != ' ' || last != ' ') && curr != EOF){
putchar (curr);
}
last = curr;
};
return 0;
}