-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiterativos.py
More file actions
31 lines (31 loc) · 1.26 KB
/
iterativos.py
File metadata and controls
31 lines (31 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from datetime import datetime
#Bitcoin(BTC)
#Cardano(ADA)
#Ethereum(Ether)
#Bitcoin cash(BCH)
#Stellar(XLM)
#Chainlink(LINK)
#EOS(IO.EOS)
print("******************************************************")
print(" ************BIENVENIDOS************")
print("******************************************************")
i=1
suma=0
while i <= 5:
criptomoneda = input(" Ingrese el Nombre de la Criptomoneda:")
cantidad = float(input(" Ingrese la cantidad de su Criptomoneda ("+criptomoneda.upper()+"):"))
cotizacion = float(input(" Cotización por USD del día de su : "+criptomoneda.upper()+" US$"))
i+=1
suma=suma+(cotizacion*cantidad)
hora = datetime.now()
print("******************************************************")
print(" ************INFORME************")
print("******************************************************")
print("Dia y hora, en la que se realizo la consulta")
print(" ______________________________________")
print(hora.strftime(" B%A %d/%B/%Y %I:%M:%S:%p"))
print(" ______________________________________")
print("******************************************************")
print("El valor total de sus Criptomonedas es:USD$"+str(suma))
print("******************************************************")
print("")