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
Can non-public members of another instance of the class be retrieved by the method of the same class?
Explain about Garbage Collector?
What is encapsulation in C++? Give an example.
Who made c++?
What is an inclusion guard?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is pointer to array in c++?
What is else syntax in c++?
Difference between inline functions and macros?
why is c++ called oops? Explain
What are references in c++? What is a local reference?
What are the important differences between c++ and java?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Explain method of creating object in C++ ?
What is tellg () in c++?