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
Why do we learn c++?
Why is c++ not purely object oriented?
why is c++ called oops? Explain
Who created c++?
How many standards of c++ are there?
Will the following program execute?
What is the output of the following program? Why?
Explain virtual class and friend class.
What is abstraction with real time example?
Describe new operator?
How do you clear a buffer in c++?
What are the important differences between c++ and java?
What is the use of seekg in c++?
What is a breakpoint?
What is :: operator in c++?