그거 할줄알면 여기서 이러고잇겟냐?
과제 하노
존나기본적인거잖어 - dc App
첫번째 반복엔 별출력 두번째반복엔 별출력 개행 별 별출력 - dc App
void star(int n) { for(int i=0; i<n; i++) printf("*"); printf("n"); }
void foo(int n) { if(n>0) { foo(n-1); star(n); } }
int main(void) { foo(3); return 0;}
그거 할줄알면 여기서 이러고잇겟냐?
과제 하노
존나기본적인거잖어 - dc App
첫번째 반복엔 별출력 두번째반복엔 별출력 개행 별 별출력 - dc App
void star(int n) { for(int i=0; i<n; i++) printf("*"); printf("n"); }
void foo(int n) { if(n>0) { foo(n-1); star(n); } }
int main(void) { foo(3); return 0;}