biggest of two no's with out using if condition statement
Answer Posted / abin m devasia,biju k m
#include<iostream.h>
void main()
{
int a,b,c;
cin>>a>>b;
c=abs(a-b);
c=(a+b+c)/2;
cout<<"Big is"<<c;
}
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
List some applications of c programming language?
What is #include stdlib h?
What is a good way to implement complex numbers in c?
Is it possible to have a function as a parameter in another function?
Difference between strcpy() and memcpy() function?
What are nested functions in c?
State the difference between realloc and free.
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What are the types of arrays in c?
Can a void pointer point to a function?
Can one function call another?
How variables are declared in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is a constant?
Explain how can you check to see whether a symbol is defined?