Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void star(int count) {
- if (count == 0) {
- return;
- }
- cout << '*';
- star(count - 1);
- }
- int main() {
- setlocale(LC_ALL, "ru");
- int count;
- cout << "Ведите количество: ";
- cin >> count;
- star(count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement