vector_recursion
unknown
c_cpp
4 years ago
172 B
17
Indexable
#include <iostream>
void func(int n)
{
std::cout << n;
if (n == 1)
return;
return func(--n);
}
int main()
{
func(5);
return 0;
}Editor is loading...