Ruby Root calculator
public ruby v1 · immutableexit = "no"while (exit.downcase != "yes")puts "Enter the root you want to take"root = gets.chomp.to_fputs "Enter the number you are taking to root from"base = gets.chomp.to_fputs root.to_s + " of " + base.to_s + " is:"puts base**(1/root)puts "Type 'yes' now to exit."exit = gets.chompend