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
what is multi-threading in C++?
which operator is used for performing an exponential operation a) > b) ^ c) none
Explain what are single and multiple inheritances in c++?
What is switch case in c++ syntax?
What is the difference between a reference and a pointer?
To what does “event-driven” refer?
Explain the use of this pointer?
Explain pass by value and pass by reference.
Are php strings immutable?
How do you compile the source code with your compiler?
Are strings immutable in c++?
What is == in programming?
Why pointer is used in c++?
What is c++ stringstream?
Which is the best c++ compiler for beginners?