[Practice] Pattern - * Full Pyramid


Submit solution

Points: 5
Time limit: 0.1s
Memory limit: 1000K

Author:
Problem type
Allowed languages
C

Problem Definition

Write a c Program to print the below pattern (Full Pyramid) based on the input for number of rows from the user.

Example

Here the input given by the user is 10.

        * 
      * * * 
    * * * * * 
  * * * * * * * 
* * * * * * * * *
Constraints

0 < rows < 25

Test Data

Sample Input 0

-1

Sample Output 0

Invalid Input

Sample Input 1

25

Sample Output 1

Invalid Input

Sample Input 2

9

Sample Output 2
                * 
              * * * 
            * * * * * 
          * * * * * * * 
        * * * * * * * * * 
      * * * * * * * * * * * 
    * * * * * * * * * * * * * 
  * * * * * * * * * * * * * * * 
* * * * * * * * * * * * * * * * *

Comments

There are no comments at the moment.