Skip to content

Commit f2f9b59

Browse files
committed
Add newlines before and after while block
1 parent b2c17bc commit f2f9b59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chapter_1/exercise_1_12/copy_io_nl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ int main()
44
{
55
char c;
66
char last_char = -1;
7+
78
while ((c = getchar()) != EOF) {
89
if(c==' ' || c=='\t' || c=='\n'){
910
if(last_char!=' ' && last_char!='\t' && last_char!='\n'){
@@ -15,4 +16,6 @@ int main()
1516
}
1617
last_char=c;
1718
}
19+
20+
return 0;
1821
}

0 commit comments

Comments
 (0)