langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
19
Task/Arithmetic-Integer/ProDOS/arithmetic-integer-1.dos
Normal file
19
Task/Arithmetic-Integer/ProDOS/arithmetic-integer-1.dos
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
IGNORELINE Note: This example includes the math module.
|
||||
include arithmeticmodule
|
||||
:a
|
||||
editvar /newvar /value=a /title=Enter first integer:
|
||||
editvar /newvar /value=b /title=Enter second integer:
|
||||
editvar /newvar /value=c
|
||||
do add -a-,-b-=-c-
|
||||
printline -c-
|
||||
do subtract a,b
|
||||
printline -c-
|
||||
do multiply a,b
|
||||
printline -c-
|
||||
do divide a,b
|
||||
printline -c-
|
||||
do modulus a,b
|
||||
printline -c-
|
||||
editvar /newvar /value=d /title=Do you want to calculate more numbers?
|
||||
if -d- /hasvalue yes goto :a else goto :end
|
||||
:end
|
||||
15
Task/Arithmetic-Integer/ProDOS/arithmetic-integer-2.dos
Normal file
15
Task/Arithmetic-Integer/ProDOS/arithmetic-integer-2.dos
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
IGNORELINE Note: This example does not use the math module.
|
||||
:a
|
||||
editvar /newvar /value=a /title=Enter first integer:
|
||||
editvar /newvar /value=b /title=Enter second integer:
|
||||
editvar /newvar /value=-a-+-b-=-c-
|
||||
printline -c-
|
||||
editvar /newvar /value=a*b=c
|
||||
printline -c-
|
||||
editvar /newvar /value=a/b=c
|
||||
printline -c-
|
||||
editvar /newvar /value=a %% b=c
|
||||
printline -c-
|
||||
editvar /newvar /value=d /title=Do you want to calculate more numbers?
|
||||
if -d- /hasvalue yes goto :a else goto :end
|
||||
:end
|
||||
Loading…
Add table
Add a link
Reference in a new issue