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
What is c language & why it is used?
Differentiate between null and void pointers.
What does the message "automatic aggregate intialization is an ansi feature" mean?
Why structure is used in c?
Difference between Shallow copy and Deep copy?
can we change the default calling convention in c if yes than how.........?
What does it mean when the linker says that _end is undefined?
How many data structures are there in c?
What is local and global variable in c?
What are control structures? What are the different types?
What is the advantage of using #define to declare a constant?
Is c is a low level language?
What is time null in c?
Are pointers integers in c?
What are qualifiers and modifiers c?