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 are the advantages and disadvantages of pointers?

843


What are the features of the c language?

875


What is the maximum length of an identifier?

944


Explain the use of fflush() function?

885


What are the 5 types of inheritance in c ++?

797


What is string in c language?

865


what do you mean by enumeration constant?

817


what is the height of tree if leaf node is at level 3. please explain

1866


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

885


What is main return c?

767


Difference between strcpy() and memcpy() function?

899


Explain what is the use of a semicolon (;) at the end of every program statement?

996


The statement, int(*x[]) () what does in indicate?

937


What is a example of a variable?

794


What is const volatile variable in c?

815