View in Telegram
ɢօʝօ ɮօƭֆ ռɛƭաօʀᏦ
Do you guys know? You can find the greater number between two numbers without using if and else. Formula : (sum of numbers + |difference of number|)/2 |...| represents mod of the difference #tips
Also if u have n numbers u can also find the greatest by performing below method

result = (sum + |diff|)/2

max = (result + |diff between next number and result|)/2

Repeat it until no number is left

For example
let assume I have 3 numbers in variable a, b, c

r = (a + b + |a - b|)/2
max = (r + c + |r - c|)/2

#tips
Love Center - Dating, Friends & Matches, NY, LA, Dubai, Global
Love Center - Dating, Friends & Matches, NY, LA, Dubai, Global
Find friends or serious relationships easily