Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Logical Operator in C language

#include<stdio.h>
int main(){
  A = 5;
  B = 10;
if((A == 5) && (B < 11)){
 printf(“Both conditions are ture”);
}

if(!(A==5)){
 printf(“A is not equal to 5”);
}

if((A>=3) ||(B<=9)){
 printf(“min any one condition is true”);
}

}
Source by techtechinfo.com #
 
PREVIOUS NEXT
Tagged: #Logical #Operator #C #language
ADD COMMENT
Topic
Name
5+3 =