mardi 1 décembre 2015

printing floyd's triangle in a pyramid pattern [on hold]

i was given a question of converting the input (4#7#9#7#4#5#6) to a pattern of pyramid triangle by exculding out the character(#).i used split() method in java & removed # symbols. and given to the string[] array so ,then i converted to triangle like the image shown http://ift.tt/1O0T2AE?

but i want a pattern like this http://ift.tt/1QRG1Q6?

i am stuck here to forward

give ur suggestion on how to print

Aucun commentaire:

Enregistrer un commentaire