Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- suma=0
- for i in range(1,5):
- num=int(input("Ingrese Notas "))
- suma=suma+num
- promedio=suma/4
- if promedio >= 3:
- print("Aprobo")
- else:
- print("Reprobo")
- print("Su nota final es ",promedio)
- """
- #While
- numero=int(input("Ingrese numero "))
- factorial=1
- while numero>0:
- factorial=factorial*numero
- numero-=1
- print("Factorial es ", factorial)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement