Half pyramid || right angle triangle pattern || special characters || Pattern || for loop || C Programming
This is a for loop program in which we are going to see how to print the above pattern of special character, with the help of the C Programming language.
 




#include <stdio.h>
void main()
{
    int rows;
    printf( "\nEnter the number of rows\n");
    scanf("%d",&rows);
    printf("\n");

    for (int i = 1; i <= rows; i++)
    {
        for (int j = 1; j <= i; j++)
        {
            printf("# ");
        }
        printf("\n");
    }
}


#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post