Sabtu, 17 April 2010

Cpp rekursi

#include

void tulis(int n){

int counter = n;

if(counter > 0){

printf("proses rekursi dengan nilai counter : %d\n", counter);
counter = counter - 1;
tulis(counter);

}

}

int main(){

tulis(10);

return 0;

}