3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / jack
# 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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is overloading unary operator?
When you overload member functions, in what ways must they differ?
What character terminates all character array strings a) b) . c) END
Explain the difference between struct and class in terms of access modifier.
What is the difference between method overloading and method overriding in c++?
What is abstract class in c++?
Is java easier than c++?
What programming language should I learn first?
How is modularity introduced in C++?
What are c++ storage classes?
How do you show the declaration of a virtual constructor?
What is an operator function? Describe the function of an operator function?
Explain the difference between new() and malloc() in c++?
What is class syntax c++?
Why c++ is called oop?