Program to Print Pyramid of Multiplication Tables

February 15, 2025 No Comments » Hits : 49






Problem Statement : Program to Print Pyramid of Multiplication Tables


Program :

#include<stdio.h>
void main()
{
int i,j;
clrscr();
 for(i=0;i<=6;i++)
  {
       for(j=0;j<=i;j++)
       {
       printf("%d\t",i*j);
       }
   printf("\n");
  }
getch();
}

Output :

0
0       1
0       2       4
0       3       6       9
0       4       8       12      16
0       5       10      15      20      25
0       6       12      18      24      30      36

Related Articles:

Leave A Response