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 iterator and generic algorithms.
Is c++ platform dependent?
What happens if a pointer is deleted twice?
give me an example for testing a program showing the test path .show how the test is important and complex.
Why is main an int?
Why are pointers used?
Explain one method to process an entire string as one unit?
Can I create my own functions in c++?
What are c++ data types?
What are 2 ways of exporting a function from a dll?
How would you find out if a linked-list is a cycle or not?
Describe private, protected and public?
Write a program in C++ for Fibonacci series
What is the basic structure of c++ program?
How do we balance an AVL Tree in C++?