Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inter = 0
- gremio = 0
- draw = 0
- count = 1
- data1, data2 = map(int, input().split())
- if (data1 == data2):
- draw += 1
- elif (data1 > data2):
- inter += 1
- else:
- gremio += 1
- print('Novo grenal (1-sim 2-nao')
- user_response = int(input())
- while (user_response != 2):
- if (user_response != 1):
- print('Novo grenal (1-sim 2-nao)')
- user_response = int(input())
- continue
- else:
- data1, data2 = map(int, input().split())
- if (data1 == data2):
- draw += 1
- elif (data1 > data2):
- inter += 1
- else:
- gremio += 1
- print('Novo grenal (1-sim 2-nao)')
- user_response = int(input())
- count += 1
- print('%d grenais' % count)
- print('Inter:%d' % inter)
- print('Gremio:%d' % gremio)
- print('Empates:%d' % draw)
- if(inter > gremio) and (inter >= draw):
- print('Inter venceu mais')
- elif(gremio > inter) and (gremio >= draw):
- print('Gremio venceu mais')
- else:
- print('Nao houve vencedor')
Advertisement
Add Comment
Please, Sign In to add comment