3- Write a program to find larger and smaller of the two
numbers.

Answer Posted / laxman kanhere

# 1 # include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2";
cin>>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

Why c++ is created?

754


What is the difference between an enumeration and a set of pre-processor # defines?

1083


Can we make copy constructor private in c++?

815


What is auto used for in c++?

775


Define the operators that can be used with a pointer.

795


What is ios flag in c++?

883


How do you find out if a linked-list has an end?

849


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

827


Is c++ faster than c?

781


How do I run c++?

797


What does #define mean in c++?

930


Show the declaration for a static member variable.

732


What is static in c++?

806


How to tokenize a string in c++?

798


Explain the register storage classes in c++.

894