/* This program is an example of recursion */ #include <stdio.h> /* Contains prototype for printf */ void count_dn(int count); /* Prototype for count_dn */ void main() { int index; index = 8; count_dn(index); } void count_dn(int count) { count--; printf("The value of the count is %d\n",count); if (count > 0) count_dn(count); printf("Now the count is %d\n",count); }RECURSON.C |
Κατεβάστε το πρόγραμμα στον υπολογιστή σας |