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

What is #include iostream h in c++?

619


When is dynamic checking necessary?

604


What is a storage class?

649


What is the default width for ouputting a long integer using the insertion operator?

694


What are friend classes? What are advantages of using friend classes?

613






List the types of polymorphism in c++?

629


What is the difference between interpreters and compilers?

634


How do I run a program in notepad ++?

608


What are friend classes?

617


Why is null pointer used?

686


Who created c++?

584


What does it mean to declare a destructor as static?

629


How many different levels of pointers are there?

658


Explain virtual destructor?

678


Which field is used in c++?

643