Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why is python slower than c?

1132


Is c is a low level language?

1206


Why we use int main and void main?

1116


Without Computer networks, Computers will be half the use. Comment.

2351


How can I send mail from within a c program?

1076


Explain the use of function toupper() with and example code?

1170


How do you define CONSTANT in C?

1364


What do you mean by keywords in c?

1196


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

1962


Can we change the value of #define in c?

1054


The __________ attribute is used to announce variables based on definitions of columns in a table?

1251


What is 'bus error'?

1208


What are the keywords in c?

1172


What is the difference between int main and void main?

1093


Can the sizeof operator be used to tell the size of an array passed to a function?

1173