Advertisement
martinvalchev

Radians to Degrees

Oct 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class RadiansToDegrees {
  4.     public static void main (String [] args){
  5.         Scanner console = new Scanner(System.in);
  6.         double rad = Double.parseDouble(console.nextLine());
  7.         double up = Math.ceil ((rad*180)/Math.PI)-1;
  8. System.out.println(up);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement