Compare commits
2 Commits
46829ccbee
...
a2222f9282
Author | SHA1 | Date | |
---|---|---|---|
a2222f9282 | |||
ca3fa14f82 |
16
essence.py
16
essence.py
@ -2,23 +2,9 @@
|
|||||||
|
|
||||||
ticket = int(input("Nombre de tickets a evaluer : "))
|
ticket = int(input("Nombre de tickets a evaluer : "))
|
||||||
|
|
||||||
|
|
||||||
#distance
|
|
||||||
|
|
||||||
distance = []
|
|
||||||
km = float(input("Distance parcourue (km) : "))
|
|
||||||
distance.append(km)
|
|
||||||
|
|
||||||
#litres
|
|
||||||
|
|
||||||
debit = []
|
|
||||||
L = float(input("Quantite d'essence consommee (L) : "))
|
|
||||||
debit.append(L)
|
|
||||||
|
|
||||||
|
|
||||||
#plusieurs_donnees
|
#plusieurs_donnees
|
||||||
|
|
||||||
j = 1
|
j = 0
|
||||||
while (j < ticket) :
|
while (j < ticket) :
|
||||||
|
|
||||||
km = float(input("Distance parcourue (km) : "))
|
km = float(input("Distance parcourue (km) : "))
|
||||||
|
Loading…
Reference in New Issue
Block a user