Jump to content

Arithmetic/Integer: Difference between revisions

m
→‎{{header|ProDOS}}: Add </lang> tags.
No edit summary
m (→‎{{header|ProDOS}}: Add </lang> tags.)
Line 1,521:
<lang powershell>[Math]::Pow($a, $b)</lang>
=={{header|ProDOS}}==
<lang ProDOS>IGNORELINE Note: This example includes the math module.
<lang ProDOS>
IGNORELINE Note: This example includes the math module.
include arithmeticmodule
:a
Line 1,540 ⟶ 1,539:
editvar /newvar /value=d /title=Do you want to calculate more numbers?
if -d- /hasvalue yes goto :a else goto :end
:end</lang>
 
<lang ProDOS>IGNORELINE Note: This example does not use the math module.
<lang ProDOS>
IGNORELINE Note: This example does not use the math module.
:a
editvar /newvar /value=a /title=Enter first integer:
Line 1,557 ⟶ 1,555:
editvar /newvar /value=d /title=Do you want to calculate more numbers?
if -d- /hasvalue yes goto :a else goto :end
:end</lang>
 
=={{header|PureBasic}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.