#include <stdio.h>
void triangulo(int n) {
for (int i = 1; i <= n; i++) {
for (int j
= 1; j
<= i
; j
++) printf("%d ", j
); }
}
int main() {
int n;
triangulo(n);
}
//https://pt.stackoverflow.com/q/339810/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHRyaWFuZ3VsbyhpbnQgbikgewoJZm9yIChpbnQgaSA9IDE7IGkgPD0gbjsgaSsrKSB7CgkJZm9yIChpbnQgaiA9IDE7IGogPD0gaTsgaisrKSBwcmludGYoIiVkICIsIGopOwoJCXByaW50ZigiXG4iKTsKCX0KfQoKaW50IG1haW4oKSB7CiAgICAgaW50IG47CiAgICAgc2NhbmYoIiVkIiwgJm4pOwoJIHRyaWFuZ3VsbyhuKTsgCSAKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzM5ODEwLzEwMQ==