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
Name the operators that cannot be overloaded in C++?
Write about the access privileges in c++ and also mention about its default access level?
Mention the ways in which parameterized can be invoked. Give an example of each.
What is vector pair in c++?
Can I uninstall microsoft c++ redistributable?
What is a tree in c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is #include sstream?
Can we run c program in turbo c++?
What is the difference between global variables and static varables?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What are mutator methods in c++?
Where do I find the current c or c++ standard documents?
What is c++ prototype?
What is microsoft c++ redistributable?