3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / shubhashree sahoo
# include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2">>;
cin<<%%d%d,&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
Explain what are accessor methods?
If dog is a friend of boy, is boy a friend of dog?
Is c++ harder than java?
What are protected members in c++?
Explain the register storage classes in c++.
What is the object serialization?
What is data binding in c++?
Can you use the function fprintf() to display the output on the screen?
What is virtual destructor ans explain its use?
Can a program run without main function?
What are keywords in c++?
Which c++ operator cannot overload?
What is the difference between while and do while loop?
Why c++ does not have finally?
What is implicit conversion/coercion in c++?