From 056580f551b1af71e538c46799c11d1598563c19 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 21:02:04 +0100 Subject: [PATCH] case trigonometry tangent angle --- src/main/c/Calculator/calculator.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 2384f51..870f164 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -100,6 +100,12 @@ int main() { result = cosine(angle); printf("Cosine of %.2lf degrees: %lf\n", angle, result); break; + case 13: + printf("Enter angle in degrees: "); + scanf("%lf", &angle); + result = tangent(angle); + printf("Tangent of %.2lf degrees: %lf\n", angle, result); + break; case : printf("Exiting...\n"); break;