Browse Source

case trigonometry sine angle

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
03c628c30a
  1. 7
      src/main/c/Calculator/calculator.c

7
src/main/c/Calculator/calculator.c

@ -88,6 +88,13 @@ int main() {
result = square(num1); result = square(num1);
printf("Result: %lf\n", result); printf("Result: %lf\n", result);
break; 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 : case :
printf("Exiting...\n"); printf("Exiting...\n");
break; break;

Loading…
Cancel
Save