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
Why c++ is created?
What is the difference between an enumeration and a set of pre-processor # defines?
Can we make copy constructor private in c++?
What is auto used for in c++?
Define the operators that can be used with a pointer.
What is ios flag in c++?
How do you find out if a linked-list has an end?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Is c++ faster than c?
How do I run c++?
What does #define mean in c++?
Show the declaration for a static member variable.
What is static in c++?
How to tokenize a string in c++?
Explain the register storage classes in c++.