Added a solution of 1-9 developed collaboratively by both of us <3
This commit is contained in:
parent
7d26e0ffc7
commit
84a9263691
1 changed files with 16 additions and 0 deletions
16
KNR C/avas_1_9.c
Normal file
16
KNR C/avas_1_9.c
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue