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


Please Help Members By Posting Answers For Below Questions

What is overloading unary operator?

608


When you overload member functions, in what ways must they differ?

593


What character terminates all character array strings a) b) . c) END

677


Explain the difference between struct and class in terms of access modifier.

699


What is the difference between method overloading and method overriding in c++?

566






What is abstract class in c++?

592


Is java easier than c++?

593


What programming language should I learn first?

595


How is modularity introduced in C++?

771


What are c++ storage classes?

622


How do you show the declaration of a virtual constructor?

536


What is an operator function? Describe the function of an operator function?

621


Explain the difference between new() and malloc() in c++?

626


What is class syntax c++?

596


Why c++ is called oop?

603