Browse Source

case trigonometry cosine angle

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

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

@ -94,7 +94,12 @@ int main() {
result = sine(angle);
printf("Sine of %.2lf degrees: %lf\n", angle, result);
break;
case 12:
printf("Enter angle in degrees: ");
scanf("%lf", &angle);
result = cosine(angle);
printf("Cosine of %.2lf degrees: %lf\n", angle, result);
break;
case :
printf("Exiting...\n");
break;

Loading…
Cancel
Save