TutorialStudyMite

Printing Inverted/Pascal’s Triangle

NNamrata Jangid1 min read
Beginner friendly

Track completion, mastery, and revision.

Inverted Pascal Triangle/Pyramid Program in C

With special characters

The code:

#include<stdio.h>
int  main()
{
int  n, i, j, k;
printf("Enter number of rows: ");
scanf("%d", & amp; n);
printf("\n");
for (i = n; i & gt; = 1; --i)
{

}
return  0;
}

The output for the above code is:

Enter number of rows:  5




*

Finished reading?

Was this helpful?

Your feedback shapes better tutorials for everyone.