Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the benefits of c language?

1132


What will the preprocessor do for a program?

1036


What are structures and unions? State differencves between them.

1125


Differentiate fundamental data types and derived data types in C.

999


How do I copy files?

1021


Is array name a pointer?

1010


What are integer variable, floating-point variable and character variable?

1211


Explain the process of converting a Tree into a Binary Tree.

2633


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2166


What is #define?

1062


How can you find the day of the week given the date?

1166


Write program to remove duplicate in an array?

1051


Differentiate between the expression “++a” and “a++”?

1219


How will you find a duplicate number in a array without negating the nos ?

2105


What is scope rule in c?

1035