-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRelational.java
More file actions
38 lines (31 loc) · 1.17 KB
/
Copy pathRelational.java
File metadata and controls
38 lines (31 loc) · 1.17 KB
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
34
35
36
37
38
public class Relational {
public static void main(String[] args)
{
int a = 10;
int b = 30;
int c = 10;
boolean result1 = a==b;
boolean result2 = a!=b;
boolean result3 = a>=b;
boolean result4 = a<=b;
boolean result5 = a>b;
boolean result6 = a<b;
boolean result7 = a==c;
System.out.println("Statement of a==b is = " + result1);
System.out.println("Statement of a!=b is = " + result2);
System.out.println("Statement of a>=b is = " + result3);
System.out.println("Statement of a<=b is = " + result4);
System.out.println("Statement of a>b is = " + result5);
System.out.println("Statement of a<b is = " + result6);
System.out.println("Statement of a==c is = " + result7);
}
}
/* OUTPUT-:
Statement of a==b is = false
Statement of a!=b is = true
Statement of a>=b is = false
Statement of a<=b is = true
Statement of a>b is = false
Statement of a<b is = true
Statement of a==c is = true
*/