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

PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1963


What is the meaning of typedef struct in c?

1012


What is the explanation for cyclic nature of data types in c?

1148


What is the difference between malloc() and calloc() function in c language?

1036


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1111


What are identifiers in c?

1155


What is scope rule of function in c?

1038


What does sizeof int return?

1029


How do I get a null pointer in my programs?

1068


how should functions be apportioned among source files?

1070


What is variables in c?

991


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3035


What are the data types present in c?

1103


Write a program to print all permutations of a given string.

1142


Differentiate between null and void pointers.

1126