-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.java
27 lines (22 loc) · 735 Bytes
/
App.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
import java.util.Scanner;
public class App{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
// String name = scan.nextLine();
// boolean isMarried = scan.nextBoolean();
// System.out.println("Name is : " + name);
System.out.println("ضع رقم الأول");
int number1 = scan.nextInt();
System.out.println("ضع الرقم الثاني");
int number2 = scan.nextInt();
if(number1>number2){
System.out.println("القيمة المتغير الأول اكبر");
}else if(number1==number2){
System.out.println("العددين متساويين");
}
else{
System.out.println("القيمة المتغير الثاني أكبر");
}
double double_number = scan.nextDouble();
}
}