Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class P09RadiansToDegrees {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double rad = Double.parseDouble(scanner.nextLine());
- double degree = rad * 180/Math.PI;
- System.out.printf("%.0f", degree);
- // degree =Rad × 180/π
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement