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

Explain container class.

1256


What is dev c++ used for?

1045


Explain the difference between realloc() and free() in c++?

1019


What are guid?

1250


What are the advantages of early binding?

1075


How come you find out if a linked-list is a cycle or not?

1037


What is lazy initialization in c++?

1110


How do pointers work?

1185


What do you mean by storage classes?

1606


Does c++ have finally?

1042


What is the difference between the indirection operator and the address of oper-ator?

1120


Is c++ the hardest programming language?

1134


How many characters are recognized by ANSI C++?

1426


Explain terminate() function?

1064


Explain one-definition rule (odr).

1120