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

What is signed and unsigned?

1014


Can you define which header file to include at compile time?

982


Explain the difference between malloc() and calloc() function?

988


What is the size of empty structure in c?

1018


Is c object oriented?

911


How do you determine whether to use a stream function or a low-level function?

1081


Explain what does the function toupper() do?

1006


Explain what are the different file extensions involved when programming in c?

1052


What is a void pointer? When is a void pointer used?

1022


What does the function toupper() do?

1065


Explain how can you determine the size of an allocated portion of memory?

1041


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3259


What are predefined functions in c?

1022


What is printf () in c?

1013


What is the difference between union and anonymous union?

1249