bsc

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

commit 143ea61496c3e523d4de549ba38c6603883d22bd
parent a412b5fec97f907d75fa27276f137c4b7e64c60a
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Tue, 30 Sep 2025 16:43:46 +0530

Add files via upload
Diffstat:
ALetusc-exercises/luc008.c | 30++++++++++++++++++++++++++++++
ALetusc-exercises/luc008.exe | 0
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/Letusc-exercises/luc008.c b/Letusc-exercises/luc008.c @@ -0,0 +1,29 @@ +/* If value of an angle is input through the keyboard, +write a program to print all its trigonometric ratios. */ +/* Author - Amit Dutta, Date - 30th SEP, 2025 */ +/* Let Us C, Chap - 2, Page - 37, Qn No.: G(e) */ + +#include <stdio.h> +#include <math.h> +int main() +{ + double inp, rsin, rcos, rtan, rcosec, rsec, rcot; + printf("Enter the Angle in degree : "); + scanf("%lf", &inp); + inp = inp * (M_PI / 180); //changing degree to radian + rsin = sin(inp); + rcos = cos(inp); + rtan = tan(inp); + rcosec = 1 / rsin; + rsec = 1 / rcos; + rcot = 1 / rtan; + printf("\nTrigonometric ratios :-" + "\nsin = %g " + "\ncos = %g" + "\ntan = %g" + "\ncosec = %g" + "\nsec = %g" + "\ncot = %g", + rsin, rcos, rtan, rcosec, rsec, rcot); + return 0; +}+ \ No newline at end of file diff --git a/Letusc-exercises/luc008.exe b/Letusc-exercises/luc008.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