सीधे मुख्य सामग्री पर जाएं

#29 How to use Relational Operator in Java | Relational Operator क्या है ?

package com.sudhirtheindian2.java123;

public class relational_operator {
public static void main(String[] args) {

// How to use relational operator in java
// 1 ==
// 2!=
// 3>
// 4<
// 5<=
// 6>=
int a =5,b=10;
System.out.println(a==b); //5==10
System.out.println(a!=b); //5!=10
System.out.println(a>b); //5>10
System.out.println(a<b); //5<10
System.out.println(a<=b); //5<=10
System.out.println(a>=b); //5>=10




}
}

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट