Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,13 +1,13 @@
|
|||
local function divmod(a, b) return { a // b, a % b } end
|
||||
|
||||
io.write("Input the first integer : ")
|
||||
local a = io.read("n")
|
||||
local a = tonumber(io.read())
|
||||
io.write("Input the second integer: ")
|
||||
local b = io.read("n")
|
||||
print($"sum: {a + b}")
|
||||
print($"difference {a - b}")
|
||||
print($"product {a * b}")
|
||||
print($"quotient {a // b}")
|
||||
print($"remainder {a % b}")
|
||||
print($"exponentation {math.tointeger(a ^ b)}")
|
||||
print($"divmod {divmod(a, b):concat(", ")}")
|
||||
local b = tonumber(io.read())
|
||||
print($"sum: {a + b}")
|
||||
print($"difference {a - b}")
|
||||
print($"product {a * b}")
|
||||
print($"quotient {a // b}")
|
||||
print($"remainder {a % b}")
|
||||
print($"exponentiation {a ** b}")
|
||||
print($"divmod {divmod(a, b):concat(", ")}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue