Repository navigation
Expand file tree
/
Copy pathOperatorTest.java
More file actions
91 lines (54 loc) · 1.98 KB
/
Copy pathOperatorTest.java
File metadata and controls
91 lines (54 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// public class OperatorTest {
// public static void main(String[] args) {
// int x = 2 , y = 5;
// int exp1 = (x * y / x);
// int exp2 = (x * (y / x));
// System.out.print(exp1 + " , ");
// System.out.print(exp2);
// }
// }
// // -------------------------------------------------------------------------------------------------------
// public class OperatorTest {
// public static void main(String[] args) {
// int x = 200, y = 50, z = 100;
// if(x > y && y > z){
// System.out.println("Hello");
// }
// if(z > y && z < x){
// System.out.println("Java");
// }
// if ((y + 200) < x && (y + 150) < z) {
// System.out.println("Hello Java");
// }
// }
// }
// ---------------------------------------------------------------------------------------------------------
// public class OperatorTest {
// public static void main(String[] args) {
// int x, y, z;
// x = y = z = 2;
// x += y;
// y -= z;
// z /= (x + y);
// System.out.println(x + " " + y + " "+ z);
// }
// }
// -------------------------------------------------------------------------------------------------------
// public class OperatorTest {
// public static void main(String[] args) {
// int x = 9, y = 12;
// int a = 2, b = 4, c = 6;
// int exp = 4/3 * (x + 34) + 9 *(a + b * c) + (3 + y * (2 + a)) / (a + b * y);
// System.out.println(exp);
// }
// }
// -------------------------------------------------------------------------------------------------------
// public class OperatorTest {
// public static void main(String[] args) {
// int x = 10, y = 5;
// int exp1 = (y * (x / y + x / y));
// int exp2 = (y * x / y + y * x / y);
// System.out.println(exp1);
// System.out.println(exp2);
// }
// }