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 new()is different from malloc()?
What is basic if statement syntax?
What is the history of c++?
What is the two main roles of operating system?
Explain what are accessor methods?
What are containers in c++?
List different attributes in C++?
What are files in c++?
What is lvalue?
What is a type library?
What are the differences between new and malloc?
Give example of a pure virtual function in c++?
What is math h in c++?
What are the differences between the function prototype and the function defi-nition?
Do you know what is overriding?