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
What is #include iostream h in c++?
When is dynamic checking necessary?
What is a storage class?
What is the default width for ouputting a long integer using the insertion operator?
What are friend classes? What are advantages of using friend classes?
List the types of polymorphism in c++?
What is the difference between interpreters and compilers?
How do I run a program in notepad ++?
What are friend classes?
Why is null pointer used?
Who created c++?
What does it mean to declare a destructor as static?
How many different levels of pointers are there?
Explain virtual destructor?
Which field is used in c++?