Advertisement
adventuretimeh

suff e insuff

Feb 12th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. conta = 0
  2. votitotali = 5
  3. suff = 0
  4. insuf = 0
  5. while conta < votitotali:
  6.     print("dammi il voto")
  7.     voto = int(input())
  8.     conta = conta + 1
  9.     if voto >= 6:
  10.         suff = suff + 1
  11.     else:
  12.         insuf = insuf + 1
  13. print("i voti suff sono")
  14. print(suff)
  15. print("i voti insuf sono")
  16. print(insuf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement