--[[Write a program to take two numbers from the user and display the sum, difference,
product and quotient--]]
num1 = io.read('*n')
num2 = io.read('*n')
print('The sum is', num1+num2)
print('The difference is', num1-num2)
print('The product is', num1*num2)
print('The quotient is', num1/num2)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: