Advertisement
Guest User

python condicion duoc uc

a guest
May 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. condicion = True
  2.  
  3. while condicion:
  4.     contarPares=3
  5.     contarImpares=5
  6.     i=0
  7.     for i in range(10):
  8.  
  9.         if i%2==0:
  10.             print("pares:",i)
  11.             contarPares+1
  12.         elif i%2!=0:
  13.             print("impar:",i)
  14.             contarImpares+1
  15.  
  16.     print("Cantidad de pares:",contarPares)
  17.     print("Cantidad de impares:",contarImpares)
  18.     otro = input().upper()
  19.  
  20.     if otro=="N":
  21.         condicion=False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement