Logical

package opertaors;


public class LogicalOperators {


public static void main(String[] args) {


int number = 45;

if(number >= 1 && number <100) {

System.out.println("Number is in the range");

} else {

System.out.println("Out of range");

}


int grade = 1;

if(!(grade == 10 || grade == 12)) {

System.out.println("You Can Give Board Exam");

} else {

System.out.println("You Can't Give Board Exam");

}


}


}

 

Comments

Popular posts from this blog

Type Casting

Arithmetic

Pattern 1