Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. bool recu(int num) {
  2.  
  3. if (no==2) printf("%d ", no);
  4. if (no < 2|| num<2) { return true; }
  5. if (num == 2) { printf("%d ", no); no--; num = no; recu(num-1); }
  6.  
  7.  
  8. if (no%num != 0)recu(num - 1);
  9. else {
  10. no--; num = no; recu(num - 1);
  11.  
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement