|
@ -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; |
|
|