The multiplying table solved by using programming C

Bismillahir Rahmanir Rahim
Now i'm showing how can you write a programing to print a multiply table.
At first you try to solved it then you can see it .See the picture 
if you want to solve this problem, you have to know for loop and array. if you don't know about this , you can't understand the program.
Solution:
#include<stdio.h>
#define col 7
#define raw 7
void main()
{
int i,j,a[col][raw];
printf("Multiply table:\n_____________________________________________________________________\n");
printf("\t|");
for(i=1;i<=7;i++)
   {
    
    
    printf("   %d   |",i);
   }                              
printf("\n____________________________________________________________________\n");
for(i=1;i<=7;i++)
{
 printf("%4d\t|",i);
 for(j=1;j<=7;j++)
 {
  a[col][raw]=i*j;
  printf("   %2d  |",a[col][raw]);
 }
 printf("\n");
 }
 printf("____________________________________________________________________\n");

}
if you have to face any problem to solve this .comment below.

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →