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
Explain container class.
What is dev c++ used for?
Explain the difference between realloc() and free() in c++?
What are guid?
What are the advantages of early binding?
How come you find out if a linked-list is a cycle or not?
What is lazy initialization in c++?
How do pointers work?
What do you mean by storage classes?
Does c++ have finally?
What is the difference between the indirection operator and the address of oper-ator?
Is c++ the hardest programming language?
How many characters are recognized by ANSI C++?
Explain terminate() function?
Explain one-definition rule (odr).