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