Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.lang.Math;
- public class RadiansToDegrees {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double radians = Double.parseDouble(scanner.nextLine());
- double degrees = radians * 180 / Math.PI;
- System.out.println(degrees);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement