From bef493cd473287fadc161d0097f5472c382db9df Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 15:59:38 +0000 Subject: [PATCH 1/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cv1/program.c b/cv1/program.c index a704d93..69134ec 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -13,3 +13,4 @@ int main(){ } printf("Lines count: %d\n", riadok); return 0; +} \ No newline at end of file From 1f85308cea40d730bda0f8d053f771c823356dfd Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 16:07:22 +0000 Subject: [PATCH 2/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 69134ec..bcd288d 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -3,6 +3,9 @@ int main(){ int i = 0; int riadok = 0; while ((i = getchar()) && i != EOF) { + if(i == '\n'){ + riadok++; + } if(i >= 'a' && i <= 'z'){ i = i-32; } From f4e8f2e700d735a9d50cfb635cfe33a321b36600 Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 16:08:51 +0000 Subject: [PATCH 3/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index bcd288d..17de8e9 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -14,6 +14,6 @@ int main(){ } putchar(i); } - printf("Lines count: %d\n", riadok); + printf("\nLines count: %d\n", riadok); return 0; } \ No newline at end of file From 2061d39e2e7056f402212203ea7663ac95718b74 Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 16:12:20 +0000 Subject: [PATCH 4/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index 17de8e9..fc42e06 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,7 +12,9 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } - putchar(i); + if(i != 'ՙ'){ + putchar(i); + } } printf("\nLines count: %d\n", riadok); return 0; From 412a35e1b77b19369cb4a92f4e2d9a662cee5587 Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 16:15:58 +0000 Subject: [PATCH 5/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index fc42e06..1ccdb07 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,9 +12,7 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } - if(i != 'ՙ'){ putchar(i); - } } printf("\nLines count: %d\n", riadok); return 0; From 9a656f638624524c9a71144ebd849668de826c2b Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 23:03:43 +0000 Subject: [PATCH 6/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 1ccdb07..d5814c0 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,7 +12,9 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } + if(i >= 32 && i <= 127){ putchar(i); + } } printf("\nLines count: %d\n", riadok); return 0; From 17f93fe78b684f7b31bb5d529408c6a9fe171708 Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 23:04:46 +0000 Subject: [PATCH 7/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index d5814c0..17de8e9 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,9 +12,7 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } - if(i >= 32 && i <= 127){ - putchar(i); - } + putchar(i); } printf("\nLines count: %d\n", riadok); return 0; From 1ff07a1b6a66ac803252f952b54e66c9d3cd854b Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 23:53:22 +0000 Subject: [PATCH 8/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 17de8e9..7131333 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,6 +12,9 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } + if(i < 32 || i > 127){ + i == 0; + } putchar(i); } printf("\nLines count: %d\n", riadok); From 46b38fdff79136fe8db5afeae032a8c98ca9977b Mon Sep 17 00:00:00 2001 From: Kapliuk Date: Sat, 24 Feb 2024 23:54:19 +0000 Subject: [PATCH 9/9] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=D0=B2=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=20'cv1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv1/program.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 7131333..17de8e9 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -12,9 +12,6 @@ int main(){ else if(i >= 'A' && i <= 'Z'){ i = i+32; } - if(i < 32 || i > 127){ - i == 0; - } putchar(i); } printf("\nLines count: %d\n", riadok);