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
Define vptr.
What is the advantage of an external iterator.
Does c++ have a hash table?
What is an iterator?
What is the best c c++ compiler for windows?
Explain binary search.
What is purpose of new operator?
Can you sort a set c++?
How can we read/write Structures from/to data files?
What are the advantages of pointers?
Describe linked list using C++ with an example.
What is iostream in c++ used for?
What does the ios::ate argument do?
What is format for defining a structure?
What is a block in c++?