All pastes #836003 Raw Edit

Ruby Roto calculator

public ruby v1 · immutable
#836003 ·published 2007-12-29 04:18 UTC
rendered paste body
exit = "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