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
Can we change the basic meaning of an operator in c++?
What are the vectors in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
How can I learn c++ easily?
What is std namespace in c++?
Explain what are mutator methods in c++?
What is the main use of c++?
What is the difference between the compiler and the preprocessor?
How can you create a virtual copy constructor?
Name the debugging methods that are used to solve problems?
What is the protected keyword used for?
Can constructor be static in c++?
How do I use arrays in c++?
What is const pointer and const reference?
What is vector processing?