1234567891011121314151617181920
#include <iostream> using namespace std; void displayRow(int n) { for (int i = 1; i <= n; i++) cout << '*'; cout << endl; } int main() { int m; cout << "Enter a positive integer: "; cin >> m; for (int j=1; j <= m; j++) displayRow(j); return 0; }