Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void loop(char tam, int caixa, int count, int cafe)
- {
- scanf("\n%d\n%c\n", &caixa, &tam);
- if(count == 7)
- {
- return;
- }
- if (tam=='G'){
- tam == 16;
- {
- cafe ==('G' * caixa);
- loop(tam, caixa, count+1, cafe);
- }
- }
- else if (tam=='P'){
- tam == 10;
- {
- cafe ==('P' * caixa);
- loop(tam, caixa, count+1, cafe);
- }
- }
- }
- int main()
- {
- int caixa, count, cafe;
- char tam;
- loop(tam, caixa, 0, cafe);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement