3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / tcs
#include<iostram.h>
void main()
{
int a,b,c;
cout<<"enter two num";
cin>>a>>b;
if(a>b)
{
cout<<"a is greater"<<a;
}
else
{
cout<<"a is small"<<a;
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is ios in c++?
Does c++ have finally?
Search for: what is pair in c++?
Explain static and dynamic memory allocation with an example each.
which operator is used for performing an exponential operation a) > b) ^ c) none
What are the advantages of using typedef in a program?
Why is c++ still popular?
How does c++ sort work?
List the types of polymorphism in c++?
what is oops and list its features in c++?
What is a memory leak c++?
Explain the scope of resolution operator.
What is code reusability in c++?
What are the sizes and ranges of the basic c++ data types?
Is rust better than c++?