add print_a.c
This commit is contained in:
parent
50abb2d472
commit
944e0b9f85
|
@ -0,0 +1,17 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
|
void a(int i)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
a(--i);
|
||||||
|
else
|
||||||
|
printf("i has reached zero \n");
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
a(1);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue