langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,35 @@
|
|||
Procedure PrintMultiplicationTable(maxx, maxy)
|
||||
sp = Len(Str(maxx*maxy)) + 1
|
||||
trenner$ = "+"
|
||||
For l1 = 1 To maxx + 1
|
||||
For l2 = 1 To sp
|
||||
trenner$ + "-"
|
||||
Next
|
||||
trenner$ + "+"
|
||||
Next
|
||||
header$ = "|" + RSet("x", sp) + "|"
|
||||
For a = 1 To maxx
|
||||
header$ + RSet(Str(a), sp)
|
||||
header$ + "|"
|
||||
Next
|
||||
PrintN(trenner$)
|
||||
PrintN(header$)
|
||||
PrintN(trenner$)
|
||||
For y = 1 To maxy
|
||||
line$ = "|" + RSet(Str(y), sp) + "|"
|
||||
For x = 1 To maxx
|
||||
If x >= y
|
||||
line$ + RSet(Str(x*y), sp)
|
||||
Else
|
||||
line$ + Space(sp)
|
||||
EndIf
|
||||
line$ + "|"
|
||||
Next
|
||||
PrintN(line$)
|
||||
Next
|
||||
PrintN(trenner$)
|
||||
EndProcedure
|
||||
|
||||
OpenConsole()
|
||||
PrintMultiplicationTable(12, 12)
|
||||
Input()
|
||||
Loading…
Add table
Add a link
Reference in a new issue