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
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
What is an incomplete type in c++?
What does count ++ do in c++?
Can I learn c++ without knowing c?
Write a program to concatenate two strings.
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is new in c++?
Difference between pointer to constant and constant pointer to a constant. Give example.
What is the arrow operator in c++?
What is c++ array?
What is the use of lambda in c++?
Can we define a constructor as virtual in c++?
How to declare a function pointer?
What is implicit conversion/coercion in c++?
What is a driver program?