biggest of two no's with out using if condition statement
Answer Posted / sarvanm
#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=abs((a+b)/2);
m2=abs((a-b)/2);
printf("The Bigest No is==%d\n",m1+m2);
printf("The Smallest No is==%d\n",m1-m2);
}
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is the ANSI C Standard?
How do we open a binary file in Read/Write mode in C?
What will the preprocessor do for a program?
Explain what’s a signal? Explain what do I use signals for?
I have seen function declarations that look like this
What is the difference between text and binary i/o?
Explain what is the difference between text files and binary files?
What is a static function in c?
What is pointers in c?
How can you increase the allowable number of simultaneously open files?
What's the best way of making my program efficient?
Explain what is the difference between functions abs() and fabs()?
What are qualifiers and modifiers c?
Why array is used in c?