summaryrefslogtreecommitdiff
path: root/659/CH6/EX6.2/exm6_2.sce
blob: 52954e10d4c5ce7caa53ab2b1d0e60f98768836c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//             Example 6.2
//A program to print multiplication table from 1*1 to 12*10.


disp("           MULTIPLICATION TABLE            ");
disp("-------------------------------------------");
row=1;
while(row<=12)           //Outer loop begins
    column=1;
    while(column<=10)    //Inner loop begins
        y=row*column;
        printf("%4d",y);
        column=column+1;
     end
     row=row+1;
     printf("\n");
end