¡Hi!
I have to do a recursive void function that do the same thing as this program.
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main() {
int num;
cout << "Write a number: " << endl;
cin >> num ;
for ( int i=0; i<num; ++i ) {
cout << "*" << endl;
}
return 0;
}
Thanks (:
Last edited on
I lost a lot of time trying to figure out how to do that, because I don't understand pretty well the recursion.
So, thank you so much! (: