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


Please Help Members By Posting Answers For Below Questions

If errno contains a nonzero number, is there an error?

798


Is c procedural or object oriented?

573


in iso what are the common technological language?

1631


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1862


What is c++ used for today?

660






What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

933


What is formal argument?

644


How can I change the size of the dynamically allocated array?

629


Explain how can you tell whether a program was compiled using c versus c++?

574


Is javascript based on c?

592


Write a program to swap two numbers without using third variable in c?

613


What is meant by preprocessor in c?

528


Can we declare variable anywhere in c?

533


how to introdu5ce my self in serco

1521


What will be the outcome of the following conditional statement if the value of variable s is 10?

755