From 03c628c30a9977e13ba0316df22097d122334866 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:58:25 +0100 Subject: [PATCH] case trigonometry sine angle --- src/main/c/Calculator/calculator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 2cc9319..6f0b2d2 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -88,6 +88,13 @@ int main() { result = square(num1); printf("Result: %lf\n", result); break; + case 11: + printf("Enter angle in degrees: "); + scanf("%lf", &angle); + result = sine(angle); + printf("Sine of %.2lf degrees: %lf\n", angle, result); + break; + case : printf("Exiting...\n"); break;