Ruby - Programming Language
This course covers the basics of programming in Ruby. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Creating A Calculator

Lesson 11
Author : Mike Dane
Last Updated : November, 2017


Code

Copyputs "Enter first num: "
num1 = gets.chomp

puts "enter second num: "
num2 = gets.chomp

puts num1.to_f + num2.to_f