Sine and cosine

Report a typo

Write a program that reads a value representing an angle (in radians), and prints the difference between its sine and cosine.

Print the subtraction of numbers, not the absolute value. Do not round the result.

Sample Input 1:

1.0

Sample Output 1:

0.30116867893975674
Write a program in Kotlin
import kotlin.math.*

fun main() {
// write your code here
}
___

Create a free account to access the full topic