-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIf13.java
More file actions
21 lines (19 loc) · 616 Bytes
/
If13.java
File metadata and controls
21 lines (19 loc) · 616 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 If13 {
public static void main(String[] args) {
Scanner scanner=new Scanner (System.in);
int a,b,c;
System.out.print ("a=");
a=scanner.nextInt ();
System.out.print ("b=");
b=scanner.nextInt ();
System.out.print ("c=");
c=scanner.nextInt ();
if ( a<b && b<c ){
System.out.println ("ortada yotgan son b="+b);
} else if ( b<a && a<c) {
System.out.println ("ortada yotgan son a="+a);
}else System.out.println ("ortada yotgan son c="+c);
}
}