About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Tuesday, September 3, 2013

C Program to Print Pyramid of Multiplication Tables

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

No comments: