Advertisement
FAMDS

QUESTÃO16

Sep 19th, 2019 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. int retNaturaisDec(int n) {
  2. if(n == -1) {
  3. return 0;
  4. }
  5. printf("%d ", n);
  6. retNaturaisDec(n - 1);
  7. }
  8. int retNaturaisDecSig(int n) {
  9. if(n < 0) {
  10. return retNaturaisDec(n * -1);
  11. }
  12. return retNaturaisDec(n);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement