Oct 7, 2016 at 4:40pm
¡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 Oct 8, 2016 at 1:46am
Oct 8, 2016 at 1:54am
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! (: