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 the size of an array be declared at runtime?
write a program to concatenation the string using switch case?
Explain what is the difference between #include and #include 'file' ?
Is struct oop?
When should we use pointers in a c program?
How can I read and write comma-delimited text?
What is the purpose of scanf() and printf() functions?
What is typedef?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
What is the difference between fread and fwrite function?
Do variables need to be initialized?
What is the purpose of main() function?
What is a wrapper function in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd