bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 4067f1232dfe47b5515e0dc11e922b866b189ffc
parent 900d094f0ed1b8929f96ec7a191905f900de9497
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Sun,  5 Oct 2025 21:05:13 +0530

luc 22(M), 23(new), 24(new)

Diffstat:
Mletusc-exercises/luc022.c | 2+-
Aletusc-exercises/luc023.c | 22++++++++++++++++++++++
Aletusc-exercises/luc024.c | 0
3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/letusc-exercises/luc022.c b/letusc-exercises/luc022.c @@ -12,7 +12,7 @@ the BMI catagory as per the following table. Morbidly Obese >= 40 */ /* Author - Amit Dutta, Date - 4rd OCT, 2025 */ -/* Let Us C, Chap- 4, Page - 71, Qn No.: D(d) */ +/* Let Us C, Chap- 4, Page - 72, Qn No.: D(d) */ #include <stdio.h> diff --git a/letusc-exercises/luc023.c b/letusc-exercises/luc023.c @@ -0,0 +1,21 @@ +/* Using conditional operators determine : + (1) Whether the character entered through the keyboard is a + lower case alphabet or not. + (2) Whether a character entered through the keyboard is a special + symbol or not. */ +/* Author - Amit Dutta, Date - 4rd OCT, 2025 */ +/* Let Us C, Chap- 4, Page - 72, Qn No.: E(a) */ + +#include <stdio.h> +int main() +{ + char inp; + printf("Enter the character : "); + scanf("%c", &inp); + printf("\nInput Character '%c' is %s a LOWER CASE ALPHABET.", inp, + (inp >= 'a' && inp <= 'z') ? "" : "NOT"); + printf("\nInput Character '%c' is %s a SPECIAL SYMBOL.", inp, + (inp >= 'a' && inp <= 'z' || inp >= 'A' && inp <= 'Z' + || inp >= '0' && inp <= '9') ? "NOT" : ""); + return 0; +}+ \ No newline at end of file diff --git a/letusc-exercises/luc024.c b/letusc-exercises/luc024.c
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror