Right Side Triangle by asterisk Extended - C Language
01-07-2019    486 times
Right Side Triangle asterisk Extended

Write a C Program to print the pattern shown in the figure [Right Side Triangle Extended]

In this type of program we always find how many column present in a particular row. Because we know that we are always print in VDU horizontally. Here column number is same as row number and the spaces are present at the right side of the character is equal to the (total no of row - current row). It is Left Side Triangle. Add a space after asterisk.

#include <stdio.h>

int main()
    int r,c,n;
    printf("Enter Total Number of row : ");
            printf(" ");
            printf("* ");
    return 0;
Private Teacher


Enter Total Number of row : 6

    * *
   * * *
  * * * *
 * * * * *
* * * * * *
Tutorial at home
Tutorial at home
    Author Details
Arnab De
I have over 16 years of experience working as an IT professional, ranging from teaching at my own institute to being a computer faculty at different leading institute across Kolkata. I also work as a web developer and designer, having worked for renowned companies and brand. Through tutorialathome, I wish to share my years of knowledge with the readers.
    Related Post
  Query About the post