Given an integer , print a full pyramid of asterisks.
A full pyramid of asterisks of size has lines of asterisks. The first line has 1 asterisk, the second line has 2 asterisks, the third line has 3 asterisks and so on. Each asterisk has a space between them. The asterisks in each line are centered to make it look like a pyramid.
Here is a full pyramid of asterisks of size 4:
* * * * * * * * * *
The input will contain an integer ().
Print the full pyramid of asterisks of the given size.
Do not print any space after the last asterisk in each line.
* * * * * *
Login to submit
|IUB Beginners' Contest 2020|
|SIU ICT Fest Intra University Programming Contest 2021 Mock|
|Kickoff Programming Contest of Spring 2022|
|SUB Beginners' Contest|
|AUST CSE 44th Batch Practise Contest 02|
|SCB-PA Inter School and College Programming Contest 2019 Practice 1|
|First Step Contest 2|
|Practice Contest for Take-Off|