Puzzled
Sunday 1 July 2012
Maximum of two numbers
Write a function that will return maximum of 2 numbers(a,b) without actually comparing them.
1 comment:
Unknown
5 July 2012 at 10:50
(a+b+|a-b|)/2
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Home
Subscribe to:
Post Comments (Atom)
(a+b+|a-b|)/2
ReplyDelete