Advertisement
Mahfuz123

Recursion

Sep 29th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. void recurse(int count)
  4. {
  5. if(count>5){
  6. return;
  7. }
  8. recurse(count+1);
  9. printf("Count = %d\n",count);
  10. }
  11. int main()
  12. {
  13. recurse(1);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement