Submit Best Submissions All Submissions

356. Counting Extra Stars


Problem Statement:
Given a number N, print a pyramid using stars, as follow:

first line should contain one star
second line contain three stars
third line contain five stars
and so on until line number N

for example: if N = 5

then you should print

    *
   ***
  *****
 *******
*********


Input Format:
single integer N

0<N<36


Output Format:
Star triangle as shown in the problem statement


Sample Input:
1


Sample Output:
*





Added by: gammal
Added at: 2015-02-11 18:18:42 UTC
Time Limit: 1 second
Partial score: No