JavaScript
let mark=80,att=90;
console.log(mark>=35 && att>=75);
console.log(mark>=90 || att>=90);
console.log(!(mark<35));AND, OR, NOT in 4 languages
Logical operators combine or change conditions and return true or false.
For a student to pass with eligibility, mark must be enough and attendance must be enough.
Do not confuse AND with OR. AND needs both true; OR needs at least one true.
let mark=80,att=90;
console.log(mark>=35 && att>=75);
console.log(mark>=90 || att>=90);
console.log(!(mark<35));int mark=80,att=90;
cout<<(mark>=35 && att>=75);
cout<<(mark>=90 || att>=90);
cout<<!(mark<35);mark=80
att=90
print(mark>=35 and att>=75)
print(mark>=90 or att>=90)
print(not(mark<35))<?php
$mark=80;$att=90;
echo $mark>=35 && $att>=75;
echo $mark>=90 || $att>=90;
echo !($mark<35);
?>AND = both true, OR = any one true, NOT = opposite.