diff --git a/c_expert/chapter6/print_a.c b/c_expert/chapter6/print_a.c new file mode 100644 index 0000000..b7a843f --- /dev/null +++ b/c_expert/chapter6/print_a.c @@ -0,0 +1,17 @@ +#include + + +void a(int i) +{ + if (i > 0) + a(--i); + else + printf("i has reached zero \n"); + return; + +} + +int main(){ + a(1); + return 0; +}