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
What is the ANSI C Standard?
Is main is a keyword in c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What does *p++ do?
How can you tell whether a program was compiled using c versus c++?
program to convert a integer to string in c language'
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is gets() function?
What is a function simple definition?
hi send me sample aptitude papers of cts?
What is the meaning of && in c?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
i have a written test for microland please give me test pattern
What does it mean when the linker says that _end is undefined?
How can I open a file so that other programs can update it at the same time?