Please tell me where is error or corrections in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

29th Jun 2020, 8:47 AM
Sâñtôsh
Sâñtôsh - avatar
2 Answers
+ 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
29th Jun 2020, 9:12 AM
Reivin
Reivin - avatar
+ 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.
29th Jun 2020, 9:08 AM
Ćheyat
Ćheyat - avatar