Find Max Value From 3 Parameters Using Function

code:

Another Logic by me:

Another Logic that is good:

A very very good logic: (Logic Logic)