File: timetables.turtle

package info (click to toggle)
kturtle 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,392 kB
  • sloc: cpp: 7,717; ruby: 2,217; xml: 243; makefile: 3; sh: 3
file content (15 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
kturtle-script-v1.0
#print time tables
@(reset)
@(penup)
@(go) 10@(,)0

$n = @(ask) "Enter the number for which I will print the time tables"

@(for) $x=0 @(to) 10 {
  @(backward) 20
  $r = $x * $n
  @(print) $x+" * "+$n+" = "+$r
}
@(spritehide)
@(backward) 40