Sha256: 7abcab2da40a27a20cbc46f45c2682c61e595d0c3ac4ba54f2163e5cf875a56d

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

 ="c!"DEFINE NO_KEY="255"
DEFINE KEY_Y="43"
DEFINE KEY_N="35"

PROC M()
  BYTE CH=$02FC I  u f   
  BYTE 
  INT ,b

  DO
    P("Iu  u =")
    =IuI()
    P("Iu  u b=")
    b=IuI()

    PF("+b=%I%E",+b)
    PF("-b=%I%E",-b)
    PF("*b=%I%E",*b)
    PF("b=%I%E",b)
    PF(" MOD b=%I%E", MOD b)
    
    PuE()
    PE("A? (YN)")

    CH=NO_KEY Fu  b
    DO
      =CH
    UNTIL =KEY_Y OR =KEY_N
    OD
    CH=NO_KEY Fu  b

    IF =KEY_N THEN
      EXIT
    FI
  OD
RETURN

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zettacode-0.1.0 zettacode.files/arithmetic.integer/action!.txt