1#include <iostream>
2using namespace std;
3
4int star (int z, int y, int c){
5 for (z=1;z<=c;z++){
6 for (y=1;y<=2*z-1;y++){
7 cout << y;
8 }
9 cout << "\n";
10 }
11 return z;
12}
13
14int main(){
15 int z,y,c;
16 cout << "Input Row = ";cin>>c;
17 star(z,y,c);
18}