class Main {public static void main(String[] args) { System.out.println("YAY! Solving Problems!");double x = 2.5;double y = -1.5;int m = 18;int n = 4; System.out.println(x+n*y-(x+n)*y); System.out.println(m/n+m/n); System.out.println(5*x-n/5); System.out.println(1-(1-(1-(1-(1-n))))); System.out.println(Math.sqrt(Math.sqrt(n))); }}
class Main { public static void main(String[] args) { System.out.println("YAY! Solving Problems!"); double x = 2.5; double y = -1.5; int m = 18; int n = 4; System.out.println(x+n*y-(x+n)*y); System.out.println(m/n+m/n); System.out.println(5*x-n/5); System.out.println(1-(1-(1-(1-(1-n))))); System.out.println(Math.sqrt(Math.sqrt(n))); } }
6.25
8
12.5
-3
1.4142135623730951
a. 6.25
b. 6.5 c. 11.7
d. -3
6.25
7
11.5
-3
6.25
6
12.5
-3
I couldn't figure out the last one