Skip to content

Commit

Permalink
realtion between number in java
Browse files Browse the repository at this point in the history
  • Loading branch information
suhanigupta23 authored Dec 25, 2023
1 parent b2c30f5 commit da23144
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions realtionbetweennumber.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
public class Program
{
public static void main(String[] args)
{
int n1=11;
int n2=20;
if (n1==n2)
{
System.out.println(n1+" is equal to "+n2);
}
else
{
if(n1<n2)
System.out.println(n1+" is less than "+n2);
else
System.out.println(n1+ "is greater than "+n2);
}
}

}

0 comments on commit da23144

Please sign in to comment.