Write a fully functioning program that converts radians to degree. Degrees=radians x 180/pi Make sure there is user input and the user is promoted what to input. The program must work with decimal numbers because pi radians (3.14159...) is a possible user input | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Write a fully functioning program that converts radians to degree. Degrees=radians x 180/pi Make sure there is user input and the user is promoted what to input. The program must work with decimal numbers because pi radians (3.14159...) is a possible user input

8th Mar 2017, 10:01 PM
Parita Shah
Parita Shah - avatar
2 ответов
+ 10
What have you done so far? What exactly is your problem? You could publish your code at the playground to let the community help you.
8th Mar 2017, 10:18 PM
Tashi N
Tashi N - avatar
0
I don't ordinarily write code for others, but it's a really small task, so okay. System.out.print("Enter radians: "); double rad = (new java.util.Scanner(System.in)).nextDouble(); System.out.println("In degrees: " + (rad * 180 / Math.PI)); Done in three lines.
8th Mar 2017, 10:22 PM
DaemonThread
DaemonThread - avatar