public class Ahmedjava { public static void main(String[] args) { int num = 10; if (num > 0) { System.out.println("positive number."); } } } public class Ahmedjava { public static void main(String[] args) { int num = -10; if (num > 0) { System.out.println("positive number."); } } } public class Ahmedjava { public static void main(String[] args) { int num = 5; if (num == 5) { System.out.println("number=5"); } System.out.println("Ahmed"); System.out.println("medo"); } } public class Ahmedjava { public static void main(String[] args) { int num = 5; if (num == 4) { System.out.println("number=5"); } System.out.println("Ahmed"); System.out.println("medo"); } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number:"); num = in.nextInt(); if (num == 4) { System.out.println("number = 4"); } } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number:"); num = in.nextInt(); if (num == 4) { System.out.println("number = 4"); System.out.println("Thinks"); } System.out.println("A"); System.out.println("B"); } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number"); num = in.nextInt(); if (num > 0) { System.out.println("Positive!"); } else { System.out.print("Negative!"); } } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number"); num = in.nextInt(); if(num%2==0){ System.out.println("Even"); } else{ System.out.println("Odd"); } } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number"); num = in.nextInt(); if (num % 2 == 0) { if (num > 10) { System.out.println("Even"); } } else { System.out.println("Odd"); } } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number"); num = in.nextInt(); if (num % 2 == 0) { if (num > 10) { System.out.println("Even"); System.out.println("and greater than 10"); } else { System.out.println("Even"); System.out.println("and less than 10"); } } else { System.out.println("Odd"); } } } import java.util.Scanner; public class Ahmedjava { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = 0; System.out.println("Enter integer number"); num = in.nextInt(); if(num>10){ System.out.println("greater than 10");} else if(num==10){ System.out.println("equal 10");} else { System.out.println("less than 10");} } }