PasteRack.org
Paste # 92938
2025-10-21 06:32:44

Fork as a new paste.

Paste viewed 444 times.


Embed:

  1. #lang racket
  2.  
  3. (define (timesTable t s)
  4.   (if (= s 12)
  5.     (begin
  6.       (display t)
  7.       (display " x ")
  8.       (display s)
  9.       (display " = ")
  10.       (display (* t s)) )
  11.     (begin
  12.       (begin
  13.       (display t)
  14.       (display " x ")
  15.       (display s)
  16.       (display " = ")
  17.       (display (* t s)) )
  18.       (timesTable (t (+ s 1))) )
  19.   )
  20. )

=>