Skip to content

Instantly share code, notes, and snippets.

@tuxcuiabano
Created October 12, 2018 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxcuiabano/06fec43c408839b07bce036d51138102 to your computer and use it in GitHub Desktop.
Save tuxcuiabano/06fec43c408839b07bce036d51138102 to your computer and use it in GitHub Desktop.
#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