bsc

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

commit 6311122650c414d5da96fc625c46723a5be8aa40
parent 29cc0bf3a21322bb8a1517c3a51305449c285d28
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Mon,  6 Oct 2025 19:03:05 +0530

new luc027

Diffstat:
Aletusc/luc027.c | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/letusc/luc027.c b/letusc/luc027.c @@ -0,0 +1,30 @@ +/* Rewrite the folowing program using conditional operations + #include<stdio.h> + int main() + { + float sal; + printf("Enter the salary"); + scanf("%f", &sal); + if(sal >= 25000 && sal <= 40000) + printf("Manager\n"); + else + if(sal >= 15000 && sal < 25000) + printf("Accountant\n"); + else + printf("Clerk\n"); + return 0; + } +*/ +/* Author - Amit Dutta, Date - 6th OCT, 2025 */ +/* Let Us C, Chap- 4, Page - 73, Qn No.: E(e) */ + +#include <stdio.h> +int main() +{ + float sal; + printf("Enter the salary"); + scanf("%f", &sal); + (sal >= 25000 && sal <= 40000) ? printf("Manager\n") : + ((sal >= 15000 && sal < 25000) ? printf("Accountant\n") : printf("Clerk\n")); + return 0; +}+ \ No newline at end of file
© 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