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 will be the outcome of the following conditional statement if the value of variable s is 10?
What is function what are the types of function?
What functions are used for dynamic memory allocation in c language?
How do we open a binary file in Read/Write mode in C?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
how to capitalise first letter of each word in a given string?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is the use of function overloading in C?
What is pass by reference in functions?
pierrot's divisor program using c or c++ code
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
How to Throw some light on the splay trees?
will u please send me the placement papers to my mail???????????????????
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is the use of getchar() function?