All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Finding the maximum (Posted on 2004-04-21)
Using only standard math operators (+, -, *, /) and functions (absolute value, square root, powers, and so on), give a function that calculates MAX(A,B,C).

Alternate version, for programmers only: using any language (BASIC, C, Excel, whatever) find the maximum of A, B, and C, but be careful when writing the program, because you cannot use the "" key, for it's broken (thus writing things like IF A>B is impossible...) and you cannot use the "M" key either, for it's also broken (...and writing H=MAX(A,B) is also not possible.)

 See The Solution Submitted by e.g. Rating: 4.0000 (5 votes)

 Subject Author Date puzzle solution K Sengupta 2007-04-15 15:25:48 re: Solution Mike 2004-11-20 22:09:01 Are A, B & C integers or floating numbers? P C 2004-05-05 12:43:39 Lotsa IF's Larry 2004-04-22 20:27:19 Super-Corrected VisualBasic Program (conforms to the problem requirements) Penny 2004-04-22 18:16:02 Charlie's Program Penny 2004-04-22 17:17:06 Corrected Visual Basic program Penny 2004-04-22 16:44:57 re: Visual Basic program Penny 2004-04-22 11:42:50 Visual Basic program Penny 2004-04-22 09:57:44 Low, Median and High Brian Smith 2004-04-21 20:06:02 Alternate absolute value Federico Kereki 2004-04-21 19:52:28 re(2): programming solution DJ 2004-04-21 17:12:49 re(2): programming solution SilverKnight 2004-04-21 17:00:33 re: programming solution Ady TZIDON 2004-04-21 16:23:06 Solution Brian Wainscott 2004-04-21 16:18:27 programming solution Charlie 2004-04-21 15:46:29

 Search: Search body:
Forums (2)