-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathif8.java
More file actions
21 lines (19 loc) · 542 Bytes
/
if8.java
File metadata and controls
21 lines (19 loc) · 542 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ifdirect;
import java.util.Scanner;
public class if8 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print(" Birinchi Sonni kiriting: ");
int a =scanner.nextInt();
System.out.println("Ikkinchi Sonni kiriting :");
int b =scanner.nextInt();
if (a>b){
System.out.println(a);
System.out.println(b);
}
else {
System.out.println(b);
System.out.println(a);
}
}
}