티스토리 뷰

#include <stdio.h>


void Recursive(int num){


if(num <=0){


return;

}


printf("Recursive Call : %d\n", num);

Recursive(num - 1);

}


int main(){


Recursive(3);

return 0;

}


OUTPUT

Recursive Call : 3                                                                                            
Recursive Call : 2                                                                                            
Recursive Call : 1  


댓글
댓글쓰기 폼