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 / laxman kanhere

# 1 # include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2";
cin>>c1>>c2;
if( c1>c2)
print("c1 is greater")
else
print("c2 is greater and c1 is smaller")
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use the functions randomize() and random()?

1063


Why do we use string in c++?

927


What are the two shift operators and what are their functions?

1077


Why we use #include iostream in c++?

1044


What are different types of loops in c++?

1116


Explain the difference between using macro and inline functions?

1106


How long does it take to get good at leetcode?

1162


What is difference between c++ and c ++ 14?

1035


Explain how to initialize a const data member.

1112


Is python written in c or c++?

1132


What is == in programming?

997


What is the object serialization?

1128


Explain how overloading takes place in c++?

1030


Explain polymorphism?

1067


What do you understand by a pure virtual member function?

996