C program to print triangle

C program to print triangle

Input:

Enter height of the triangle:
5

Output:

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


Implementation: