/*
Print the following pattern
*
**
***
****
*****
*/
#include <stdio.h>
void print_pyramid(int rows) {
for (int i = 1; i <= rows; i++) {
for (int j = 1; j <= i; j++) {
}
}
}
int main() {
int rows = 5;
print_pyramid(rows);
return 0;
}
LyoKUHJpbnQgdGhlIGZvbGxvd2luZyBwYXR0ZXJuCioKKioKKioqCioqKioKKioqKioKKi8KI2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHByaW50X3B5cmFtaWQoaW50IHJvd3MpIHsKICAgIGZvciAoaW50IGkgPSAxOyBpIDw9IHJvd3M7IGkrKykgewogICAgICAgIGZvciAoaW50IGogPSAxOyBqIDw9IGk7IGorKykgewogICAgICAgICAgICBwcmludGYoIioiKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQp9CgppbnQgbWFpbigpIHsKICAgIGludCByb3dzID0gNTsKICAgIHByaW50X3B5cmFtaWQocm93cyk7CiAgICByZXR1cm4gMDsKfQ==