Ruby program to multiply given two numbers
Following program shows you how to multiply given two numbers.
In this program we get inputs from user and multiplies those two inputs
puts "Enter first number:"
input1 = Integer(gets.chomp)
puts "Enter second number:"
input2 = Integer(gets.chomp)
result = input1 * input2
puts "Multiplication of given two numbers is: #{result}"
Output:
Enetr first number:
10
Enetr second number:
20
Multiplication of given two numbers is: 200