C Program to Print Inverted Half Number Pyramid

In this program, you'll learn to print inverted half number pyramid.



Source Code
#include <stdio.h>
int main()
{
    int i, j, c=1;
    //clrscr();
    for (i=4; i>0; i--)
    {
        for (j=0; j<i; j++)
        {
            printf("%d ", c);
            c++;
        }
        printf("\n");
    }
    return 0;
}
Output
1 2 3 4
5 6 7
8 9
10





"Coding Hub - Learn to code" app now available on Google Play Store