Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void print(int n) {
- if (n == 0) {
- return;
- }
- cout << '*';
- print(n - 1);
- }
- int main() {
- setlocale(LC_ALL, "ru");
- print(8);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement