Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package c01_Simple_Calculations;
- import java.util.Scanner;
- public class p10_RadiansToDegrees {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double rad = Double.parseDouble(scan.nextLine());
- double degrees = Math.toDegrees(rad);
- System.out.printf("%.0f", degrees);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement