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 are the types of container classes?
Is c++ an oop?
which of the following is not an secondary constant a) array b) real c) union
Is c++ a dying language?
What is a float in c++?
Does c++ have finally?
What is singleton pattern in c++?
What is atoi in c++?
Which one is a preferred language C or C++? Why?
What is recursion?
How a new operator differs from the operator new?
What is a container class? What are the types of container classes in c++?
What is iterator in c++?
Implement stack operations with pointers with appropriate exception checks.
What are the four main data types?