-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathif9.java
More file actions
28 lines (21 loc) · 517 Bytes
/
if9.java
File metadata and controls
28 lines (21 loc) · 517 Bytes
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
package ifdirect;
import java.util.Scanner;
public class if9 {
public static void main(String[] args) {
Scanner scanner =new Scanner(System.in);
System.out.println("A :");
int a =scanner.nextInt();
System.out.println("B :");
int b =scanner.nextInt();
if (a>b){
a=13;
b=18;
}
else {
b=13;
a=18;
}
System.out.println("a :"+a);
System.out.println("b :"+b);
}
}