doxygen_recursion
 All Files Functions
test_recursion.c
Go to the documentation of this file.
1 void tic()
2 {
3  tac();
4 }
5 void tac()
6 {
7  toc();
8 }
9 void toc()
10 {
11  tic();
12 }
13 
14 int fact(int n)
15 {
16  int x=1;
17 
18  while(n>1)
19  {
20  x=n*fact(n-1);
21  }
22 
23  return(x);
24 }
25 
26 void main()
27 {
28  fact(5);
29  tic();
30 
31 }
void tac()
Definition: test_recursion.c:5
int fact(int n)
void toc()
Definition: test_recursion.c:9
void main()
void tic()
Definition: test_recursion.c:1