C Program to Print Full Number Pyramid

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



Source Code
#include<stdio.h>

int main()
{
    int i, j, s, count=0;

    for(i=0;i<4;i++)
    {
        for(s=0;s<3-i;s++)
        {
            printf("  ");
        }
        for(j=0;j<=i;j++)
        {
            count++;
            printf("%d   ", count);
        }
        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