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
What are references in c++? What is a local reference?
Can you overload the operator+ for short integers?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What are static and dynamic type checking?
Why do we use classes in programming?
What is #include ctype h in c++?
What is a loop? What are different types of loops in c++?
What is the best c++ book?
What are advantages of using friend classes?
Name the implicit member functions of a class.
Is c++ harder than java?
What is the difference between containment and delegation?
What is a dynamic binding in c++?
What do manipulators do?
We use library functions in the program, in what form they are provided to the program?