Browse Source

case trigonometry tangent angle

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
056580f551
  1. 6
      src/main/c/Calculator/calculator.c

6
src/main/c/Calculator/calculator.c

@ -100,6 +100,12 @@ int main() {
result = cosine(angle); result = cosine(angle);
printf("Cosine of %.2lf degrees: %lf\n", angle, result); printf("Cosine of %.2lf degrees: %lf\n", angle, result);
break; 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 : case :
printf("Exiting...\n"); printf("Exiting...\n");
break; break;

Loading…
Cancel
Save