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

3- Write a program to find larger and smaller of the two
numbers.

Answer Posted / tcs

#include<iostram.h>
void main()
{
int a,b,c;
cout<<"enter two num";
cin>>a>>b;
if(a>b)
{
cout<<"a is greater"<<a;
}
else
{
cout<<"a is small"<<a;
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ runtime?

1111


Does c++ have string data type?

1106


Do you know about latest advancements in C++ ?

1249


What are vectors used for in c++?

1076


Distinguish between new and malloc and delete and free().

1022


What is singleton pattern in c++?

994


Carry out conversion of one object of user-defined type to another?

1048


Do you know the problem with overriding functions?

1109


Is c++ a difficult language?

1125


Differentiate between an external iterator and an internal iterator?

998


What is the use of c++ programming language in real life?

1051


What are the sizes and ranges of the basic c++ data types?

1046


What does namespace mean in c++?

1078


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1056


How can you link a c++ program to c functions?

1105