summaryrefslogtreecommitdiff
path: root/src/user/app/kbasic/tables.bas
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/kbasic/tables.bas')
-rw-r--r--src/user/app/kbasic/tables.bas15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/user/app/kbasic/tables.bas b/src/user/app/kbasic/tables.bas
new file mode 100644
index 0000000..31e9ce3
--- /dev/null
+++ b/src/user/app/kbasic/tables.bas
@@ -0,0 +1,15 @@
+input "Taille de la table: ", k
+print "Table d'addition:"
+for i = 0 to k
+ for j = 0 to k
+ print i+j;
+ next
+ print
+next
+print "Table de multiplication:"
+for i = 1 to k
+ for j = 1 to k
+ print i * j;
+ next
+ print
+next