(11C) Finding biggest of 3 integers
10-20-2018, 05:41 AM (This post was last modified: 10-20-2018 07:34 AM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 700 Joined: Dec 2016
(11C) Finding biggest of 3 integers
Program to find the biggest number of 3 integers.

Procedure: f [USER]

n1 [ENTER] n2 [ENTER] n3 [E]

Example:

1, 3 and 2

1 [ENTER] 3 [ENTER] 2 [E] display 3

Biggest number is 3

---------------------------------------

14, 10 and 8

14 [ENTER] 10 [ENTER] 8 [E] display 14

--------------------------------------

-4, -3 and -6

4 [CHS] [ENTER] 3 [CHS] [ENTER] 6 [CHS] [E] display -3

-------------------------------------

FIX 4

0.9987, 0.9990 and 0.9989

,9987 [ENTER] ,9990 [ENTER] ,9989 [E] display 0.9990

Program: Finding biggest of 3 integers
Code:
 LBL E STO 1 Rv STO 2 Rv STO3 ------------------------------------------ RCL 2 RCL 1 X>Y GTO 2 RCL 3 RCL 2 X>Y GTO 1 RCL 3 RTN ------------------------------ LBL 1 RCL 2 RTN ------------------------------- LBL 2 RCL 3 RCL 1 X>Y GTO 3 RCL 3 RTN ------------------------------ LBL 3 RCL 1 RTN

Gamo
 « Next Oldest | Next Newest »

 Messages In This Thread (11C) Finding biggest of 3 integers - Gamo - 10-20-2018 05:41 AM RE: (11C) Finding biggest of 3 numbers - Dieter - 10-20-2018, 10:48 AM RE: (11C) Finding biggest of 3 integers - Gamo - 10-21-2018, 03:13 AM

User(s) browsing this thread: 1 Guest(s)