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 new()is different from malloc()?

1162


What is basic if statement syntax?

1145


What is the history of c++?

1132


What is the two main roles of operating system?

1122


Explain what are accessor methods?

1165


What are containers in c++?

1031


List different attributes in C++?

1145


What are files in c++?

1088


What is lvalue?

1215


What is a type library?

1154


What are the differences between new and malloc?

1199


Give example of a pure virtual function in c++?

1240


What is math h in c++?

1241


What are the differences between the function prototype and the function defi-nition?

1156


Do you know what is overriding?

1292