relat06_02.java
6553 단어 javaprogrammingbeginnerstutorial
// Relational Operators
// problem:
// relat06_02.java{wirte java program showing the waorking of all Relational Operators.}
class relat06_02
{
public static void main(String args[])
{
int x= 10 , y= 11;
System.out.println("Value of x = "+x+" and value of y = "+y);
System.out.println("Equal to operator always give the boolean response.");
System.out.println("Is "+x+" == "+y+" => "+(x==y));
System.out.println("Not Equal to operator is also give the boolean response.");
System.out.println("Is "+x+" != "+y+" => "+(x!=y));
System.out.println("Greater than also give the boolean response.");
System.out.println("Is "+x+" > "+y+" => "+(x>y));
System.out.println("Greater than Equal to also give the boolean response.");
System.out.println("Is "+x+" >= "+y+" => "+(x>=y));
System.out.println("Lesser than also give the boolean response.");
System.out.println("Is "+x+" < "+y+" => "+(x<y));
System.out.println("Lesser than Equal to also give the boolean response.");
System.out.println("Is "+x+" <= "+y+" => "+(x<=y));
System.out.println("ENDING THE PROGRAM...\n:-) THANK YOU (-:");
}
}
Reference
이 문제에 관하여(relat06_02.java), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/ukantjadia/relat0602java-55ag텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)