14 lines
377 B
Java
14 lines
377 B
Java
public class test4{
|
|
public static void main(String[] args) {
|
|
int x = 10; // Line 3
|
|
int y = 0; // Line 4
|
|
if (x > 5) { // Line 5
|
|
y = x + 10; // Line 6
|
|
} else {
|
|
y = x - 10; // Line 8
|
|
}
|
|
int z = y * 2; // Line 10
|
|
System.out.println(z); // Line 11
|
|
}
|
|
}
|