-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
175ea0c
commit 1216b20
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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(); | ||
} | ||
} |