-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsiralama.java
35 lines (32 loc) · 986 Bytes
/
siralama.java
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
29
30
31
32
33
34
35
import java.util.Scanner;
public class siralama {
public static void main(String[] args) {
int a,b,c ;
Scanner input = new Scanner(System.in);
System.out.print("İlk Sayı : ");
a = input.nextInt();
System.out.print("İkinci Sayı : ");
b = input.nextInt();
System.out.print("Üçüncü Sayı : ");
c = input.nextInt();
if ((a < b) && (a < c)) {
if (b < c) {
System.out.println("a < b < c");
} else {
System.out.println("a < c < b");
}
} else if ((b < a) && (b < c)){
if (a < c) {
System.out.println("b < a < c");
} else {
System.out.println("b < c < a");
}
}else {
if ((c < a) && (c < b)) {
System.out.println("c < a < b");
} else {
System.out.println("c < b < a");
}
}
}
}