Created
October 12, 2018 22:40
-
-
Save tuxcuiabano/06fec43c408839b07bce036d51138102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
void limpaQuadra(int npombo){ | |
if(npombo > 0){ | |
limpaQuadra(npombo -1); | |
} | |
printf ("Quantidade de pombos retirados : %d\n", npombo); | |
} | |
int main(){ | |
int numpombo; | |
printf("Digite o número de pombos na quadra"); | |
scanf("%d",&numpombo); | |
limpaQuadra(numpombo); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment