Redacted -5/6


#1

puts "users input enter"
text=gets.chomp
puts "user input “
redact=gets.chomp
words=text.split(” ")
words.each do |letter|
if letter=="Hello"
print "REDACTED "
else
print letter + " "
end

end

I am getting the correct output but its still giving me an error


#2

Got the output ,I thought you had to assume the redact !


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.