Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int retNaturaisDec(int n) {
- if(n == -1) {
- return 0;
- }
- printf("%d ", n);
- retNaturaisDec(n - 1);
- }
- int retNaturaisDecSig(int n) {
- if(n < 0) {
- return retNaturaisDec(n * -1);
- }
- return retNaturaisDec(n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement