From da88dce3cd792b9640d5434d6c83012674064346 Mon Sep 17 00:00:00 2001 From: Okas1 Date: Sat, 21 Jan 2023 13:56:22 +0100 Subject: [PATCH 1/2] Task 001c --- TASKS/Task 001.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/TASKS/Task 001.c b/TASKS/Task 001.c index 24be041..b1bf171 100644 --- a/TASKS/Task 001.c +++ b/TASKS/Task 001.c @@ -4,4 +4,17 @@ Write a program that prints the alphabet in lowercase, followed by a new line. Print all the letters except q and e use printf -*/ \ No newline at end of file +*/ + +int main() +{ + char xy; + + for (xy = 'b'; xy <= 'z'; ++xy) + { + printf("%c ", xy); + printf("\n"); + } + + return (0); +} From f39d10e5ca5c83ca14764ad83bacad75c6b9c2fb Mon Sep 17 00:00:00 2001 From: Okas1 Date: Sat, 18 Mar 2023 00:31:41 +0100 Subject: [PATCH 2/2] Task 001.c --- TASKS/Task 001.c | 12 +++++++----- TASKS/Task 002.c | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/TASKS/Task 001.c b/TASKS/Task 001.c index b1bf171..052e99e 100644 --- a/TASKS/Task 001.c +++ b/TASKS/Task 001.c @@ -8,13 +8,15 @@ use printf int main() { - char xy; + int alphabet; - for (xy = 'b'; xy <= 'z'; ++xy) + for (alphabet = 'a'; alphabet <= 'z'; alphabet++) { - printf("%c ", xy); - printf("\n"); + if (alphabet == 'e' || alphabet == 'q') + continue; + printf(alphabet); } + printf("\n"); - return (0); + return (0); } diff --git a/TASKS/Task 002.c b/TASKS/Task 002.c index 5cdd390..71f1bf0 100644 --- a/TASKS/Task 002.c +++ b/TASKS/Task 002.c @@ -3,4 +3,4 @@ Write a program that asks and reads the score of a user If the score is less than 80, display to the user that they are not elgible to be enrolled. If the score is greater than or equal 80, they can be enrolled. -*/ \ No newline at end of file +*/