T Tam ca New member Sep 19, 2021 #1 What will be the output of the following Java program? Code: class Output { public static void main(String args[]) { double x = 3.14; int y = (int) Math.toRadians(x); System.out.print(y); } } A. 0 B. 3 C. 3.0 D. 3.1
What will be the output of the following Java program? Code: class Output { public static void main(String args[]) { double x = 3.14; int y = (int) Math.toRadians(x); System.out.print(y); } } A. 0 B. 3 C. 3.0 D. 3.1
H Hoàng Diễm Quỳnh New member Sep 19, 2021 #2 Answer: a Explanation: None. Output: Code: $ javac Output.java $ java Output 0 Upvote 0 Downvote