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 c++ runtime?
Does c++ have string data type?
Do you know about latest advancements in C++ ?
What are vectors used for in c++?
Distinguish between new and malloc and delete and free().
What is singleton pattern in c++?
Carry out conversion of one object of user-defined type to another?
Do you know the problem with overriding functions?
Is c++ a difficult language?
Differentiate between an external iterator and an internal iterator?
What is the use of c++ programming language in real life?
What are the sizes and ranges of the basic c++ data types?
What does namespace mean in c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
How can you link a c++ program to c functions?