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 are default parameters? How are they evaluated in c++ function?
Difference between inline functions and macros?
What is virtual destructor ans explain its use?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
Why Pointers are not used in C++?
Why do we learn c++?
What is a v-table?
What is c++ and its features?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is the use of volatile variable?
Describe the process of creation and destruction of a derived class object?
Where do I find the current c or c++ standard documents?
What are the data types in c++?
Does there exist any other function which can be used to convert an integer or a float to a string?