Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Arithmetic-Integer/Wren/arithmetic-integer.wren
Normal file
13
Task/Arithmetic-Integer/Wren/arithmetic-integer.wren
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import "io" for Stdin, Stdout
|
||||
System.write("first number: ")
|
||||
Stdout.flush()
|
||||
var a = Num.fromString(Stdin.readLine())
|
||||
System.write("second number: ")
|
||||
Stdout.flush()
|
||||
var b = Num.fromString(Stdin.readLine())
|
||||
System.print("sum: %(a + b)")
|
||||
System.print("difference: %(a - b)")
|
||||
System.print("product: %(a * b)")
|
||||
System.print("integer quotient: %((a / b).floor)")
|
||||
System.print("remainder: %(a % b)")
|
||||
System.print("exponentiation: %(a.pow(b))")
|
||||
Loading…
Add table
Add a link
Reference in a new issue