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...

biggest of two no's with out using if condition statement

Answer Posted / abin m devasia,biju k m

#include<iostream.h>
void main()
{
int a,b,c;
cin>>a>>b;
c=abs(a-b);
c=(a+b+c)/2;
cout<<"Big is"<<c;
}

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some applications of c programming language?

959


What is #include stdlib h?

1112


What is a good way to implement complex numbers in c?

1055


Is it possible to have a function as a parameter in another function?

1085


Difference between strcpy() and memcpy() function?

1158


What are nested functions in c?

1032


State the difference between realloc and free.

1096


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

5249


What are the types of arrays in c?

1182


Can a void pointer point to a function?

1031


Can one function call another?

1120


How variables are declared in c?

1049


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1284


What is a constant?

1069


Explain how can you check to see whether a symbol is defined?

1210