Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class RadiansToDegrees_02 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- //1. read input -> radians
- //2. calculate degrees = radians * 180 / pi
- //3. print -> 0
- double radians= Double.parseDouble(scanner.nextLine());
- double degrees = radians * 180 / Math.PI;
- System.out.printf("%.0f",degrees);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement