Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Arithmetic-Integer/PureBasic/arithmetic-integer.basic
Normal file
17
Task/Arithmetic-Integer/PureBasic/arithmetic-integer.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
OpenConsole()
|
||||
|
||||
Define a, b
|
||||
|
||||
Print("Number 1: "): a = Val(Input())
|
||||
Print("Number 2: "): b = Val(Input())
|
||||
|
||||
PrintN("Sum: " + Str(a + b))
|
||||
PrintN("Difference: " + Str(a - b))
|
||||
PrintN("Product: " + Str(a * b))
|
||||
PrintN("Quotient: " + Str(a / b)) ; Integer division (rounding mode=truncate)
|
||||
PrintN("Remainder: " + Str(a % b))
|
||||
PrintN("Power: " + Str(Pow(a, b)))
|
||||
|
||||
Input()
|
||||
|
||||
CloseConsole()
|
||||
Loading…
Add table
Add a link
Reference in a new issue