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 the cout in c++?
What kind of jobs can I get with c++?
what is scupper?
What are the types of array in c++?
What is c++ hiding?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Difference between inline functions and macros?
What are the advantages of inheritance in c++?
Can I learn c++ as my first language?
Which programming language should I learn first?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is the best c++ book?
What is the basic structure of a c++ program?
How const int *ourpointer differs from int const *ourpointer?
What is meant by entry controlled loop?