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

Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

3132


What is an incomplete type in c++?

855


What does count ++ do in c++?

786


Can I learn c++ without knowing c?

683


Write a program to concatenate two strings.

677






How do you invoke a base member function from a derived class in which you’ve overridden that function?

669


What is new in c++?

670


Difference between pointer to constant and constant pointer to a constant. Give example.

738


What is the arrow operator in c++?

642


What is c++ array?

636


What is the use of lambda in c++?

659


Can we define a constructor as virtual in c++?

688


How to declare a function pointer?

672


What is implicit conversion/coercion in c++?

782


What is a driver program?

710