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
How would you implement a substr() function that extracts a sub string from a given string?
Is c++ still in demand?
Is multimap sorted c++?
Which software is used to run c++ program?
What information can an exception contain?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Differentiate between realloc() and free().
Which bit wise operator is suitable for turning off a particular bit in a number?
Is python written in c or c++?
what is COPY CONSTRUCTOR and what is it used for?
Are there interfaces in c++?
Can static member variables be private?
What is c strings syntax?
State the difference between delete and delete[].