Arithmetic/Integer: Difference between revisions

Content added Content deleted
No edit summary
Line 808: Line 808:
No exponentiation operator exists, but can be worked around with the .NET BCL:
No exponentiation operator exists, but can be worked around with the .NET BCL:
<lang powershell>[Math]::pow($a, $b)</lang>
<lang powershell>[Math]::pow($a, $b)</lang>

=={{header|PureBasic}}==

<lang purebasic>OpenConsole()

PrintN("Please enter two integer numbers. Confirm each with return.")

Define a, b
a = Val(Input())
b = Val(Input())

PrintN("a + b = " + Str(a + b))
PrintN("a - b = " + Str(a - b))
PrintN("a * b = " + Str(a * b))
PrintN("a / b = " + Str(a / b))

CloseConsole()</lang>


=={{header|Python}}==
=={{header|Python}}==