bsc

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

commit fb7ecfbb643c69ff33ed87a6ac4ef39a28967447
parent cc89a29c8868b3ae3f4ac2352f46a666c489c4a3
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Wed,  1 Oct 2025 16:10:43 +0530

NEW_COMMIT

Diffstat:
ALetusc-exercises/luc011.c | 22++++++++++++++++++++++
ALetusc-exercises/luc011.exe | 0
ALetusc-exercises/luc012.c | 20++++++++++++++++++++
ALetusc-exercises/luc012.exe | 0
4 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/Letusc-exercises/luc011.c b/Letusc-exercises/luc011.c @@ -0,0 +1,21 @@ +/* If ages of Ram, Shyam and Ajay are input through the keyboard, +write a program to determine the youngest of the three. */ +/* Author - Amit Dutta, Date - 1st OCT, 2025 */ +/* Let Us C, Chap- 3, Page - 53, Qn No.: f(b) */ + +#include <stdio.h> +int main() +{ + int ram, shyam, ajay; + printf("Please enter the age of Ram, Shyam and Ajay : "); + scanf("%d %d %d", &ram, &shyam, &ajay); + if (ram == shyam || ram == ajay || shyam == ajay) + printf("\nThree must have different age."); + if (ram < shyam && ram < ajay) + printf("\nRam is the youngest. Age : %d", ram); + if (shyam < ram && shyam < ajay) + printf("\nShyam is the youngest. Age : %d", shyam); + if (ajay < ram && ajay < shyam) + printf("\nAjay is the youngest. Age : %d", ajay); + return 0; +}+ \ No newline at end of file diff --git a/Letusc-exercises/luc011.exe b/Letusc-exercises/luc011.exe Binary files differ. diff --git a/Letusc-exercises/luc012.c b/Letusc-exercises/luc012.c @@ -0,0 +1,19 @@ +/* Write a program to check whether a triangle is valid or not, +if three angles of the triangle are entered through the keyboard. +A triangle is valid if the sum of all the three angles is equal to 180 degrees. */ +/* Author - Amit Dutta, Date - 1st OCT, 2025 */ +/* Let Us C, Chap- 3, Page - 53, Qn No.: f(c) */ + +#include <stdio.h> +int main() +{ + double angle1, angle2, angle3, sum; + printf("Enter the value of the three angle of the triangle : "); + scanf("%lf %lf %lf", &angle1, &angle2, &angle3); + sum = angle1 + angle2 + angle3; + if (sum == 180.0) + printf("\nThis Triangle is a valid one."); + else + printf("\nThis Triangle is not valid. Sum of the angles : %g", sum); + return 0; +}+ \ No newline at end of file diff --git a/Letusc-exercises/luc012.exe b/Letusc-exercises/luc012.exe Binary files differ.
© 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