c 2b 2b star pattern right triangle

Solutions on MaxInterview for c 2b 2b star pattern right triangle by the best coders in the world

showing results for - "c 2b 2b star pattern right triangle"
Mayron
18 Aug 2016
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}
similar questions
queries leading to this page
c 2b 2b star pattern right triangle