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
What is flush programming?
Is C++ case sensitive a) False b) Depends on implementation c) True
Do you know the use of vtable?
Write syntax to define friend functions in C++.
What is the array and initializing arrays in c++?
Search for: what is pair in c++?
What should main() return in c and c++?
What is java and c++?
What do you mean by global variables?
What is the difference between equal to (==) and assignment operator (=)?
Why is standard template library used?
What is while loops?
What is #include ctype h in c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack