Monday, 10 February 2014

WAP to find maximum of 2 number in a single line without using any condition and loop

Eg if 15,20 are two numbers,it should give us 20.
Note:Donot use any predefined functions related to max and min.

Hint: use Math.abs() function

No comments:

Post a Comment