Skip to content

Commit

Permalink
57
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiyar committed May 21, 2020
1 parent 175ea0c commit 1216b20
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Lesson 57 - الدرس/App.java
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();
}
}

0 comments on commit 1216b20

Please sign in to comment.