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
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What are manipulators in c++ with example?
Mention the storage classes in c++.
Is c++ an integer?
How do you clear a buffer in c++?
What is the cout in c++?
What is linked list in c++?
What is do..while loops structure?
Write a c program for binary addition of two 8 bit numbers.
What are shallow and deep copies?
What is difference between rand () and srand ()?
Why do we need templates?
What is virtual destructor? What is its use?
Can we overload operator in c++?
Which bit wise operator is suitable for putting on a particular bit in a number?