You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
#include <iostream>
|
|
using std::cout;
|
|
|
|
namespace myspace {
|
|
void print_n_times(char str[], int n = 10) {
|
|
for (int i = 0; i < n; ++i)
|
|
cout << str;
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
char s[] = "nya\n";
|
|
myspace::print_n_times(s);
|
|
}
|