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
Comment on c++ standard exceptions?
What do you mean by const correctness?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the difference between prefix and postfix versions of operator++()?
Explain terminate() and unexpected() function?
Define pre-condition and post-condition to a member function in c++?
How the delete operator differs from the delete[]operator?
What is the difference between global int and static int declaration?
How do I use turbo c++?
What is a sequence in c++?
What would happen on forgetting [], while deallocating an array through new?
Do you know the use of vtable?
What is else syntax in c++?
What is meaning of in c++?
Write about all the implicit member functions of a class?