Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void loop(char tam, int caixa, int count, int cafe)
  4. {
  5. scanf("\n%d\n%c\n", &caixa, &tam);
  6. if(count == 7)
  7. {
  8. return;
  9. }
  10. if (tam=='G'){
  11. tam == 16;
  12. {
  13. cafe ==('G' * caixa);
  14. loop(tam, caixa, count+1, cafe);
  15. }
  16. }
  17. else if (tam=='P'){
  18. tam == 10;
  19. {
  20. cafe ==('P' * caixa);
  21. loop(tam, caixa, count+1, cafe);
  22. }
  23. }
  24. }
  25.  
  26. int main()
  27. {
  28. int caixa, count, cafe;
  29. char tam;
  30. loop(tam, caixa, 0, cafe);
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement