Advertisement
Guest User

Untitled

a guest
May 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. """
  2. suma=0
  3. for i in range(1,5):
  4. num=int(input("Ingrese Notas "))
  5. suma=suma+num
  6. promedio=suma/4
  7. if promedio >= 3:
  8. print("Aprobo")
  9. else:
  10. print("Reprobo")
  11. print("Su nota final es ",promedio)
  12. """
  13.  
  14. #While
  15.  
  16. numero=int(input("Ingrese numero "))
  17. factorial=1
  18. while numero>0:
  19. factorial=factorial*numero
  20. numero-=1
  21. print("Factorial es ", factorial)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement