Untitled

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

void print(int num) {
    for (int i = 0; i < num; i++) {
        cout << "*";
    }
    cout << num << '\n';
}

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