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
What is the use of sizeof?
Is sizeof a keyword in c?
How is = symbol different from == symbol in c programming?
Write a Program to find whether the given number or string is palindrome.
What is array in C
What is the benefit of using an enum rather than a #define constant?
Explain how can you check to see whether a symbol is defined?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is the significance of c program algorithms?
Explain how do you override a defined macro?
What is cohesion and coupling in c?
How do I round numbers?
What do you understand by normalization of pointers?
Is return a keyword in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above