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
Is swift better than c++?
Describe new operator and delete operator?
What is runtime polymorphism in c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is #include math h in c++?
Can we inherit constructor in c++?
Explain the uses oof nested class?
What are pointer-to-members in C++? Give their syntax.
List different attributes in C++?
What is data structure in c++?
What is endl?
Is c++ slower than c?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is the rule of three?
What are the 4 types of library?