//Write a c program to demonstrate the logical and , logical or , logical not :

 //Write a c program to demonstrate and use the logical AND , logical OR , logical NOT :


#include<stdio.h>

int main()

{

int a,b,c,result;

printf("Enter the value of a,b,and c\n");

scanf("%d %d %d",&a,&b,&c);

result=(a>b)&&(b<c);

printf(" The result after logical AND operators is %d\n",result);

result=(c<b)||(b>a);

printf(" The result after logical OR operator is %d\n",result);

result=!(a>b);

printf(" The result after logical NOT is %d\n",result);

}


Thanks   you   for   reading .   For   more   knowledge   click   here

 Learning C programming language from basics concept include with PROGRAMS:

 https://kodewithgy.blogspot.com/2024/09/learning-c-programming-language-from.html

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post