Update 'cv1/program.c'
This commit is contained in:
parent
508110160b
commit
fe1686ea26
@ -1,12 +1,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
char ch;
|
char ch;
|
||||||
int line_count = 0;
|
int line_count = 0;
|
||||||
|
|
||||||
while ((ch = getchar()) != EOF) {
|
while ((ch = getchar()) != EOF) {
|
||||||
if (ch == '\n') {
|
if (ch == '\n') {
|
||||||
|
putchar('\n')
|
||||||
line_count++;
|
line_count++;
|
||||||
} else {
|
} else {
|
||||||
if (isprint(ch)) {
|
if (isprint(ch)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user