biggest of two no's with out using if condition statement
Answer Posted / agalya
#include <stdio.h>
#include <math.h>
void main()
{
int m1,m2,a,b;
clrscr();
printf("Enter the First Number\n");
scanf("%d",&a);
printf("Enter the Second Number\n");
scanf("%d",&b);
m1=max(a,b);
m2=min(a,b);
printf("The Bigest No is==%d\n",m1);
printf("The Smallest No is==%d\n",m1);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is pointer to pointer in c language?
what is ur strangth & weekness
How can I convert a number to a string?
When should you use a type cast?
What is the collection of communication lines and routers called?
Differentiate between functions getch() and getche().
Which driver is a pure java driver
What math functions are available for integers? For floating point?
What is the use of a semicolon (;) at the end of every program statement?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
how to capitalise first letter of each word in a given string?
What is #define size in c?
What tq means in chat?
What is advantage of pointer in c?
Why string is used in c?