Write a program in C for showing working of different
logical operator in C.
Your program should guide users with proper message/menu on
the console.
Answer Posted / rajiv
int a,b,c,d,m,t;
float x,y,j,k;
scanf("%d\n%d\n%d\n%d\n%d\n%d\n",&a,&b,&c,&d,&m,&t);
scanf("%f\n%f\n%f\n%f\n",&x,&y,&j,&k);
if((a>b && c<d)||(x>y && j<k)||(m!=t))
printf("its demo of logical operator");
else
printf("logical error is there in program");
| Is This Answer Correct ? | 42 Yes | 16 No |
Post New Answer View All Answers
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
How is = symbol different from == symbol in c programming?
Is it possible to execute code even after the program exits the main() function?
How to write c functions that modify head pointer of a linked list?
Why is c still so popular?
What is extern c used for?
Why & is used in scanf in c?
What is equivalent to ++i+++j?
How can I insert or delete a line (or record) in the middle of a file?
Explain what is wrong with this statement? Myname = ?robin?;
How can you invoke another program from within a C program?
What is bss in c?
What is operator promotion?
What is the most efficient way to store flag values?
When is a null pointer used?