티스토리 뷰

반응형

#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  


댓글

티스토리 방명록

최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday