#include int main(){ int r = 5; for (int i = 1; i <= r; ++i) { for (int c = 0; c < i; ++c) { printf("$"); } printf("\n"); } return 0; }