Question d’entretien chez KVP Business Solutions

write a program to print pyramid pattern ? in any object oriented programming language .

Réponses aux questions d'entretien

Utilisateur anonyme

23 juill. 2018

gets.chomp.to_i.times{|i| print " "*(l-i), "*" * (((i+1)*2)-1), "\n"}

Utilisateur anonyme

23 juill. 2018

l = gets.chomp.to_i; l.times{|i| print " "*(l-i), "*" * (((i+1)*2)-1), "\n"}