diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp index 9d6500d..69d60b8 100644 --- a/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -3,9 +3,21 @@ #include -int main() -{ - std::cout << "Hello World!\n"; +void f(int n) { + if (n > 0) { + printf("<"); + printf("*"); + f(n - 1); + printf("%d>", n); + printf("*"); + } +} + +int main() { + printf("START\n"); + f(5); + printf("\nFINISH\n"); + return 0; } // Запуск программы: CTRL+F5 или меню "Отладка" > "Запуск без отладки"