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

Answer Posted / pankaj upadhyay

using c++;
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b,c;
double d;
cout<<"enter no.";
cin>>a>>b;
d=pow(2,a-b)
c=(int)d;
if(c==0)
cout<<b;
else
cout<<a;
return 0;
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain output of printf("Hello World"-'A'+'B'); ?

1203


What is the difference between procedural and declarative language?

918


Is c compiled or interpreted?

935


Is there a way to compare two structure variables?

882


I have a varargs function which accepts a float parameter?

818


to find the closest pair

2091


How would you rename a function in C?

834


can anyone please tell about the nested interrupts?

1902


What is the scope of an external variable in c?

801


Explain is it valid to address one element beyond the end of an array?

977


Tell me about low level programming languages.

900


What is a function simple definition?

872


What is scope of variable in c?

796


What are the salient features of c languages?

876


Is r written in c?

926