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
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is meant by keywords in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Not all reserved words are written in lowercase. TRUE or FALSE?
What is array in c with example?
Define VARIABLE?
c language interview questions & answer
What is output redirection?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Is c is a procedural language?
why programs in c are running with out #include
When should volatile modifier be used?
Why can’t we compare structures?
What is 02d in c?