exit = "no" while (exit.downcase != "yes") puts "Enter the root you want to take" root = gets.chomp.to_f puts "Enter the number you are taking to root from" base = gets.chomp.to_f puts root.to_s + " of " + base.to_s + " is:" puts base**(1/root) puts "Type 'yes' now to exit." exit = gets.chomp end