Jump to content



Photo
- - - - -

LCM [fx-5800P]

fx-5800P

  • Please log in to reply
No replies to this topic

#1 Tritonio

Tritonio

    Casio Addict

  • Members
  • PipPipPip
  • 51 posts
  • Gender:Male

  • Calculators:
    FX-5800P, FX-991ES+, FX-991EX, HP Prime

Posted 08 September 2019 - 06:37 PM

Small program to find the least common multiple for two numbers on an fx-5800P

?M
?N
N→B
N<M⇒M→B
For 1→F To B
Cls
Locate 1,1,BxF
If Frac(BxF÷N)=0 And Frac(BxF÷M)=0
Then
Break
IfEnd
Next
Cls
"LCM":BxF






Also tagged with one or more of these keywords: fx-5800P

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users