Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # x = 0
- # 2.times do
- # 500.times do
- # x = x + 1
- # print "Vadik "
- # sleep 0.01
- # end
- # puts x
- # end
- # do
- # 10.upto(20) do |x|
- # puts x
- # end
- # do
- # 10.downto(20) do |x|
- # puts x
- # end
- 10.times do |x|
- puts "hi"
- x.times do
- print "!"
- end
- end
- print "how much in month "
- x = gets.to_f
- print "Hom many month "
- n = gets.to_i
- s = 0
- 1.upto(n) do |m|
- s = s + x
- puts "for month #{m} #{s}"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement