/*Display
10 9 8 7 6
9 8 7 6 5
8 7 6 5 4
7 6 5 4 3
6 5 4 3 2 /*
#include <stdio.h>
int main()
{
int i, j, k;
for(i = 10; i >= 6; i--)
{
k = i;
for(j = 1; j <= 5; j++)
{
printf("%d\t", k);
k--;
}
printf("\n");
}
return 0;
}
/*
1 2 3 4
2 4 6 8
3 6 9 12
4 8 12 16
*/
#include <stdio.h>
int main()
{
int n = 4; // size of the table
int i, j;
// outer loop to iterate over rows
for(i=1; i<=n; i++)
{
// inner loop to iterate over columns
for(j=1; j<=n; j++)
{
// calculate and print the product of row and column numbers
printf("%d\t", i*j);
}
// move to the next row
printf("\n");
}
return 0;
}