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 an operator function? Describe the function of an operator function?
Explain rtti.
Show the declaration for a pointer to function returning long and taking an integer parameter.
what are the events occur in intr activated on interrupt vector table
What is class invariant in c++?
What is c++ and its features?
Explain polymorphism?
Which operator cannot overload?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is a far pointer? where we use it?
Explain how overloading takes place in c++?
Explain the isa and hasa class relationships. How would you implement each?
What is the v-ptr?
What relational operators if statements in c++?