write a c program to find biggest of 3 number without
relational operator?

Answer Posted / raheman(papi)khan

#include<stdio.h>
void main()
{
int a,b,c;
printf("enter the value of a b and c");
scanf("%d%d%d",%a,&b,&c);
int max=a;
if(b>max)
max=b;
if(c>max)
max=c;
printf("%d",max);
else
printf("equal");
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #ifdef ? What is its application?

861


What is array within structure?

837


Write a Program to find whether the given number or string is palindrome.

984


What is typeof in c?

769


What does & mean in scanf?

843


What is the description for syntax errors?

845


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2138


What is c variable?

803


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

847


What is assignment operator?

818


What is the use of define in c?

805


Can you add pointers together? Why would you?

888


Explain high-order and low-order bytes.

878


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4991


What is default value of global variable in c?

762