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 program that takes two numbers from user that
prints the smallest number

Answer Posted / vaishnavi

#include<iostream.h>
void main()
{
int a,b;
cout<<"Enter two numbers";
cin>>a>>b;
if(a>b)
cout<<a<<"is greater";
else
cout<<b<<is greater";
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the operators that cannot be overloaded in C++?

1111


Write about the access privileges in c++ and also mention about its default access level?

1125


Mention the ways in which parameterized can be invoked. Give an example of each.

1112


What is vector pair in c++?

1264


Can I uninstall microsoft c++ redistributable?

1187


What is a tree in c++?

1020


Which bit wise operator is suitable for turning off a particular bit in a number?

1162


What is #include sstream?

1108


Can we run c program in turbo c++?

1129


What is the difference between global variables and static varables?

1186


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2118


What are mutator methods in c++?

1198


Where do I find the current c or c++ standard documents?

1134


What is c++ prototype?

1308


What is microsoft c++ redistributable?

1147