Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Max of 3 numbers
#3
Function max_of_two compares two numbers and returns largest.

This statement:

max_of_two( x, max_of_two( y, z ))
First it evaluates and returns larger number from y and z max_of_two(y, z). Lets call it w. Then it evaluates and returns largest number from x and w (for better understanding just replace expression with its actual result, which will make second step: max_of_two(x, w)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Max of 3 numbers - by MrGoat - Jan-20-2019, 12:09 PM
RE: Max of 3 numbers - by stullis - Jan-20-2019, 02:09 PM
RE: Max of 3 numbers - by perfringo - Jan-20-2019, 02:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Print Numbers starting at 1 vertically with separator for output numbers Pleiades 3 5,131 May-09-2019, 12:19 PM
Last Post: Pleiades

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020