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 is const in c++?

671


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

736


Which format specifier is used for printing a pointer value?

664


What are the operators in c++?

757


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3334






What does override mean in c++?

677


Why do we use using namespace std in c++?

709


Why c++ is faster than java?

702


What is the difference between a baller and a reference in C++?

669


What is a modifier in c++?

717


What is a c++ map?

766


What is exception handling? Does c++ support exception handling?

679


What is c++ map?

657


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

713


Are php strings immutable?

670