write a program that takes two numbers from user that
prints the smallest number
Answer Posted / vaishnavi
#include<iostream.h>
void main()
{
int a,b;
cout<<"Enter two numbers";
cin>>a>>b;
if(a>b)
cout<<a<<"is greater";
else
cout<<b<<is greater";
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can a program run without main in c++?
Explain explicit container.
What do you mean by static variables?
Does c++ have foreach?
What is #include iostream in c++?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Can we delete this pointer in c++?
Define stacks. Provide an example where they are useful.
What are pointer-to-members in C++? Give their syntax.
What is runtime errors c++?
Explain one-definition rule (odr).
What are virtual constructors/destructors?
What is size_type?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is the role of static keyword for a class member variable?