#include <stdio.h>
int main()
{
int a;
int b = 1;
int n = 1;
scanf("%d", &a);
for (int i = 0; i < a; i++)
{
for (int i = 0; i < b; i++)
{
printf("%d ", n);
n++;
}
b++;
printf("\n");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: