Sha256: 34ef490bd0328226439776de7fb168c7b174d80987787199b11c4ca06c60b02f
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
==={{|Af BASIC}}=== S c [[#C_BASIC|C BASIC]] ==={{|BC}}=== ' AmcI DECLARE %, b% INPUT "E A: ", % INPUT "E B: ", b% PRINT PRINT %, " + ", b%, " ", % + b% PRINT %, " - ", b%, " ", % - b% PRINT %, " * ", b%, " ", % * b% PRINT %, " ", b%, " ", % b%, ", uc z" PRINT "MOD(", %, ", ", b%, ") ", MOD(%, b%), ", f " PRINT "POW(", %, ", ", b%, ") ", INT(POW(%, b%)) ==={{|C BASIC}}=== 10 INPUT "ENTER A NUMBER" A% 20 INPUT "ENTER ANOTHER NUMBER" B% 30 PRINT "ADDITION:"A%"+"B%"="A%+B% 40 PRINT "SUBTRACTION:"A%"-"B%"="A%-B% 50 PRINT "MULTIPLICATION:"A%"*"B%"="A%*B% 60 PRINT "INTEGER DIVISION:"A%""B%"="INT(A%B%) 70 PRINT "REMAINDER OR MODULO:"A%"%"B%"="A%-INT(A%B%)*B% 80 PRINT "POWER:"A%"^"B%"="A%^B% ==={{|Tu BASIC}}=== ! RC: I Ac ! Tu BASIC 6.007 ! T f BC . PROGRAM I_Ac INPUT PROMPT "E A: ": INPUT PROMPT "E B: ": b PRINT PRINT " + "b" "+b PRINT " - "b" "-b PRINT " * "b" "*b PRINT " "b" "INT(b) PRINT "MOD("", "b") " MOD(,b) PRINT "POW("", "b") "INT(^b) GET KEY END ==={{|QBc}}=== {{ |QucBc|4.5}} fuco m(!, b!) + b - b * b b b fuc Tuc : 0 R c: f
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zettacode-0.1.0 | zettacode.files/arithmetic.integer/basic.txt |