Skip to content

Commit

Permalink
corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliyaBond committed Mar 15, 2018
1 parent 391e2fe commit f6f0319
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 2018/YuliyaBondareva/1/pascal_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ def tree(number, base_number)
puts 'Depth?'
number = gets.chomp
base_number = ENV['BASE']
if number.to_i < = 0
if number.to_i <= 0
loop do
puts 'depth must be positive. '
puts 'Depth?'
number = gets.chomp
break if number.to_i > 0
end
end
if base_number.to_i < =0
elsif base_number.to_i <= 0
loop do
puts 'BASE must be positive. '
puts 'BASE?'
Expand Down

0 comments on commit f6f0319

Please sign in to comment.