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


Please Help Members By Posting Answers For Below Questions

What are references in c++? What is a local reference?

576


Can you overload the operator+ for short integers?

601


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

675


What are static and dynamic type checking?

618


Why do we use classes in programming?

578






What is #include ctype h in c++?

669


What is a loop? What are different types of loops in c++?

595


What is the best c++ book?

714


What are advantages of using friend classes?

644


Name the implicit member functions of a class.

600


Is c++ harder than java?

572


What is the difference between containment and delegation?

706


What is a dynamic binding in c++?

538


What do manipulators do?

574


We use library functions in the program, in what form they are provided to the program?

603