Computer Science, asked by snehal1525, 3 months ago

write a program to print the following patterns

*
* #
* # *
* # * #

Answers

Answered by Beautyprincess22
2

Answer:

Algorithm. Accept the number of rows from the user to form pyramid shape Iterate the loop till the number of rows specified by the user: Display 1 star in the first row Increase the number of stars based on the number of rows.

Explanation:

hope it's helps you

Similar questions