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
What is signed and unsigned?
Can you define which header file to include at compile time?
Explain the difference between malloc() and calloc() function?
What is the size of empty structure in c?
Is c object oriented?
How do you determine whether to use a stream function or a low-level function?
Explain what does the function toupper() do?
Explain what are the different file extensions involved when programming in c?
What is a void pointer? When is a void pointer used?
What does the function toupper() do?
Explain how can you determine the size of an allocated portion of memory?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are predefined functions in c?
What is printf () in c?
What is the difference between union and anonymous union?