#include<stdio.h> int main() { int n = 0; int i = 0; int j = 0; while(scanf("%d",&n) != EOF) { for(i = 1;i<=n;i++) { for(j = 1;j<=i;j++) { printf("%d ",j); } printf("\n"); } } return 0; }
#include<stdio.h> int main() { int n = 0; int i = 0; int j = 0; while(scanf("%d",&n) != EOF) { for(i = 1;i<=n;i++) { for(j = 1;j<=i;j++) { printf("%d ",j); } printf("\n"); } } return 0; }