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 the cout in c++?

1004


What kind of jobs can I get with c++?

1043


what is scupper?

2320


What are the types of array in c++?

1091


What is c++ hiding?

1114


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1063


Difference between inline functions and macros?

974


What are the advantages of inheritance in c++?

1043


Can I learn c++ as my first language?

1053


Which programming language should I learn first?

1042


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

992


What is the best c++ book?

1212


What is the basic structure of a c++ program?

1078


How const int *ourpointer differs from int const *ourpointer?

1067


What is meant by entry controlled loop?

1060