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

What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1112


What are manipulators in c++ with example?

1022


Mention the storage classes in c++.

1043


Is c++ an integer?

989


How do you clear a buffer in c++?

932


What is the cout in c++?

1016


What is linked list in c++?

1104


What is do..while loops structure?

1102


Write a c program for binary addition of two 8 bit numbers.

4077


What are shallow and deep copies?

1085


What is difference between rand () and srand ()?

1055


Why do we need templates?

959


What is virtual destructor? What is its use?

1027


Can we overload operator in c++?

999


Which bit wise operator is suitable for putting on a particular bit in a number?

1163