Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
piramid4
#ruby 2.3.1 i=1 k=5 j=1 t=1 t=k i.upto(k) do j.upto(t) do print " " end t-=1 j.upto(2*i-1) do print "*" end j+=1 print "\n" i+=1 end
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
variables output
numbers
Hash and Symbols
Calculator
piramid
regex.rb
testing ruby
Division Function without / or * signs
interacting through strings with loops
yes
stackse - search stackoverflow differently
Please log in to post a comment.