**************** Print multiplication table ******************
My program is kinda good, but not really. I'm missing the left side so that my program looks like this....
1 2 3 4 5 ... ... ... n
1 1 2 3 4 5
2 2 4 6 8 10
3 3 6 9 12 15
4 4 8 12 16 20
5 5 10 15 20 25
...
...
...
n
I'm not sure how to fix it... here is what I have. Thanks
#include<stdio.h>
int main()
{
int i,j,size,play;
printf("Enter size of multiplication table: ");
scanf("%d", &size);
for (i=1; i<=size; i++)
{
for (j=1; j<=size; j++)
{
play=i*j;
printf("%d ", play);
}
}
}
Bookmarks