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
Explain what data encapsulation is in c++?
How do you clear a set in c++?
How would you use the functions sin(), pow(), sqrt()?
Define virtual constructor.
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What do you mean by public protected and private in c++?
What is the use of main function in c++?
Explain the virtual inheritance in c++.
Is c++ the hardest programming language?
What is a tuple c++?
Why was c++ created?
Describe the advantage of an external iterator.
What is ifstream c++?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
How to tokenize a string in c++?