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
can anyone please tell about the nested interrupts?
What is a pointer in c?
How can I handle floating-point exceptions gracefully?
What is the difference between array and pointer?
What is static and auto variables in c?
Explain 'far' and 'near' pointers in c.
why we wont use '&' sing in aceesing the string using scanf
Is boolean a datatype in c?
Can a function argument have default value?
Why do we use null pointer?
What is the difference between if else and switchstatement
Is c is a low level language?
plz let me know how to become a telecom protocol tester. thank you.
Can you add pointers together? Why would you?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?