Skip to content

Commit 351a5b3

Browse files
Java Operators(Relational) | Set - 2
1 parent 6cb9532 commit 351a5b3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Java_Operators_Relational_Set-2.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Solution{
2+
static void relationalOperators(int A,int B){
3+
// code here
4+
if (A<B) {
5+
System.out.println(A + " is less than " + B);
6+
}
7+
else if (A>B) {
8+
System.out.println(A + " is greater than " + B);
9+
}
10+
else {
11+
System.out.println(A + " is equal to " + B);
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)