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
Why is python slower than c?
Is c is a low level language?
Why we use int main and void main?
Without Computer networks, Computers will be half the use. Comment.
How can I send mail from within a c program?
Explain the use of function toupper() with and example code?
How do you define CONSTANT in C?
What do you mean by keywords in c?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Can we change the value of #define in c?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is 'bus error'?
What are the keywords in c?
What is the difference between int main and void main?
Can the sizeof operator be used to tell the size of an array passed to a function?