pc003.c
Problem Statement
pc003.c
Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for n = 5
Source Code
c
#include <stdio.h>
int main()
{
int i, j, n;
printf("Enter n : ");
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
for (j = 1; j <= i; j++)
{
printf("%d\t", i * j);
}
printf("\n");
}
return 0;
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
● Author - Amit Dutta · Updated - 12 Dec 2025