Sunday, 18 January 2015

Handy Multiplication Table Program (10 x 10) using For loop in C Language

/* Handy Multiplication Table Program (10 x 10)
1 2   7 8 9   10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
4 .     .     .   . . . .    . .
. .     .     .   . . . .    . .
. .     .     .   . . . .    . .
. .     .     .   . . . .    . .
10 20 30 40 50 60 70 80 90 100
*/




#include
#include
int main()
{
   int i,j;
   for(i=1;i<=10;i++) // rows digits
   {
        for(j=1;j<=10;j++) // coloumn digits
        {
             printf("%d\t",j*i); // multiplication of row x coloumn digits.
        }
        printf("\n");
   }                  
   getch();
   return 0;
}


// Run this code using devC++.
====================
TCC | The Complete Code
====================

0 comments:

Post a Comment