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

Define vptr.

1020


What is the advantage of an external iterator.

1028


Does c++ have a hash table?

983


What is an iterator?

1182


What is the best c c++ compiler for windows?

1043


Explain binary search.

977


What is purpose of new operator?

1064


Can you sort a set c++?

977


How can we read/write Structures from/to data files?

1112


What are the advantages of pointers?

1051


Describe linked list using C++ with an example.

1071


What is iostream in c++ used for?

1015


What does the ios::ate argument do?

1166


What is format for defining a structure?

1067


What is a block in c++?

1039