Arithmetic/Integer: Difference between revisions

Content added Content deleted
(Added 11l)
m (Applesoft BASIC)
Line 667: Line 667:


=={{header|BASIC}}==
=={{header|BASIC}}==
==={{header|Applesoft BASIC}}===
{{works with|QuickBasic|4.5}}
Same code as [[#Commodore_BASIC|Commodore BASIC]]
<lang qbasic>function math(a!, b!)
print a + b
print a - b
print a * b
print a / b
print a mod b
end function</lang>
Truncate towards: 0

Remainder sign matches: first operand

==={{header|BaCon}}===
==={{header|BaCon}}===
<lang freebasic>' Arthimetic/Integer
<lang freebasic>' Arthimetic/Integer
Line 721: Line 711:
END
END
</lang>
</lang>
==={{header|QBasic}}===
{{works with|QuickBasic|4.5}}
<lang qbasic>function math(a!, b!)
print a + b
print a - b
print a * b
print a / b
print a mod b
end function</lang>
Truncate towards: 0

Remainder sign matches: first operand


=={{header|BASIC256}}==
=={{header|BASIC256}}==