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