fork download
  1. #include <stdio.h>
  2. void fun(int a, int b, int c)
  3. {
  4. if( c != 0 ) {
  5. fun(b, a+b, c-1);
  6. printf("%d, %d, %d \n", a, b, c);
  7. }
  8. }
  9. int main() {
  10. int i = 1, j = 1, k = 3;
  11. fun(i, j, k);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
2, 3, 1 
1, 2, 2 
1, 1, 3