Skip to content

Commit cdf995b

Browse files
authored
Add files via upload
1 parent c82be04 commit cdf995b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ExercicioOperadores.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
public class ExercicioOperadores {
2+
3+
public static void main(String[] args) {
4+
5+
int a, b, c;
6+
7+
a = 5;
8+
b = 2;
9+
c = b-- + ++a;
10+
System.out.println(c);
11+
12+
a = 2;
13+
b = 3;
14+
c = 4;
15+
c -= a + 5;
16+
System.out.println(c);
17+
18+
a = 6;
19+
b = 8;
20+
c = a >= b ? 15 : 10;
21+
System.out.println(c);
22+
23+
String x = "5";
24+
String y = "5";
25+
String z = x + y;
26+
System.out.println(z);
27+
}
28+
}

0 commit comments

Comments
 (0)