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
What is meant by forward referencing and when should it be used?
Why is null pointer used?
Why is c++ is better than c?
What are different types of loops in c++?
What is array in c++ pdf?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is the full form of c++?
How const int *ourpointer differs from int const *ourpointer?
What is diamond problem in c++?
Can I learn c++ without c?
What is the difference between new() and malloc()?
What is the need of a destructor?
Is swift faster than go?
Is c++ free?
What's the order in which the objects in an array are destructed?