Advertisement
yovkovbpfps

Simple Operation and Calculation Radians to Degrees

Apr 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class RadiansToDegrees {
  3. public static void main(String[] args) {
  4. Scanner scanner = new Scanner(System.in);
  5.  
  6. double rad = Double.parseDouble(scanner.nextLine());
  7.  
  8. double degrees = rad * 180 / Math.PI;
  9.  
  10. System.out.printf("%.0f",degrees);
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement