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

Tell us something about keyword 'auto'.

1110


Can include files be nested?

1162


Is it fine to write void main () or main () in c?

1077


Explain what is a pragma?

1092


What is the difference between call by value and call by reference in c?

1215


What is hungarian notation? Is it worthwhile?

1274


Why is #define used?

1336


Explain high-order and low-order bytes.

1171


Describe the steps to insert data into a singly linked list.

1118


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1106


Are the outer parentheses in return statements really optional?

1161


What is a sequential access file?

1245


Can you subtract pointers from each other? Why would you?

1009


How to delete a node from linked list w/o using collectons?

2826


What does main () mean in c?

1147