Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
214 B
0
Indexable
Never
#include <iostream>
using namespace std;

void print(int num){
    string dot=string(num,'*');
    cout << dot << num << '\n';
}

int main(){
    print(5);
    print(1);
    print(0);
    print(2);
    print(3);
}