forked from Programming-Club-IAU/Level-1.2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGithub.java
More file actions
33 lines (31 loc) · 986 Bytes
/
Github.java
File metadata and controls
33 lines (31 loc) · 986 Bytes
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
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package github;
import java.util.Scanner;
/**
*
* @author SOADAD
*/
public class Github {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int x;
int y;
Scanner input =new Scanner(System.in);
System.out.println("/////// find maxiumum for two numbers /////// ");
System.out.println("Enter the first number : ");
x = input.nextInt();
System.out.println("Enter the secoend number : ");
y=input.nextInt();
if(x>y)
System.out.println(x +" is greater than "+y);
else if(y>x)
System.out.println(y +" is greater than "+x);
else
System.out.println("the two numbers are equal to each other ");
}
}