write a program that takes two numbers from user that
prints the smallest number
Answer Posted / hemant jakkani
#include <stdio.h>
#include <string.h>
main()
{
int x,y;
scanf("%d%d",&x,&y);
if(x>y)
printf("First Number is greater: %d",x);
else
printf("Second Number is greater:%d",y);
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Define Virtual function in C++.
When should I use unitbuf flag?
Why is swift so fast?
What is c++ hash?
Can static member variables be private?
Explain bubble sorting.
Explain about Virtual Function in C++?
Is vector a class in c++?
what is the use of void main() in C++ language?
Define upcasting.
Describe the advantage of an external iterator.
What is meant by forward referencing and when should it be used?
What is constructor and destructor in c++?
How to implement is-a and has-a class relationships?
How did c++ get its name?