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
How would you use the functions randomize() and random()?
Why do we use string in c++?
What are the two shift operators and what are their functions?
Why we use #include iostream in c++?
What are different types of loops in c++?
Explain the difference between using macro and inline functions?
How long does it take to get good at leetcode?
What is difference between c++ and c ++ 14?
Explain how to initialize a const data member.
Is python written in c or c++?
What is == in programming?
What is the object serialization?
Explain how overloading takes place in c++?
Explain polymorphism?
What do you understand by a pure virtual member function?