Loading...
Engaged employer
write a program to print pyramid pattern ? in any object oriented programming language .
Anonymous
gets.chomp.to_i.times{|i| print " "*(l-i), "*" * (((i+1)*2)-1), "\n"}
l = gets.chomp.to_i; l.times{|i| print " "*(l-i), "*" * (((i+1)*2)-1), "\n"}
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.