+ 2
Please tell me where is error or corrections in this code?
Guys can you help me in this code houses = gets.chomp.to_i #your code goes here if houses >= 3 p = 200 / houses puts p.ceil end #your code goes here
2 odpowiedzi
+ 5
the code is ruby the error occurs because inside the if block remove the tabs
If houses >=3
p=200/3
puts p.ceil
end
+ 3
Please use your tags properly. There is no python related question. If you write in Ruby don't ask with the tag as python.