Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- y = 0
- z = 0
- cap = 10
- #puts ""
- #puts "Time for 3's"
- #puts ""
- #if x == 10
- # z = x - 3
- #end
- #while x > 10
- # z = x - 3
- # puts "To high: #{x}"
- #end
- #while x < 10
- # puts x
- # x = x + 3
- # puts "x = #{x}"
- # z = x + 3
- # puts "z = #{z}"
- #end
- y = z + 3
- a = 0
- b = 0
- puts ""
- puts "Time for 5's"
- puts ""
- while a or b >= cap
- # puts "To high: #{a}"
- puts a
- end
- if b >= cap
- b = b -5
- end
- while a < cap
- a = a + 5
- puts "a = #{a}"
- b = a + 5
- puts "b = #{b}"
- end
- #d = z + b
- puts ""
- puts ""
- #puts y
- puts b
- puts "The Final anwser is: #{b}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement