Skip to content

Commit 7021192

Browse files
committed
updated
From portuguese to english.
1 parent 3c2a2cc commit 7021192

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

ex014.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Escreva um programa que converta uma temperatura digitando em graus Celsius para graus Fahrenheit.
2-
celcius = int(input('Digite o valor da temperatura em graus Celcius:'))
3-
fahrenheit = ( celcius * 1.8) + 32
4-
print(f'Se a temperatura local é de {celcius}°C convertendo ficará {fahrenheit}°F.')
1+
# Write a program that converts a temperature entered in degrees Celsius to degrees Fahrenheit.
2+
celsius = int(input('Enter a temperature in Celsius:'))
3+
fahrenheit = ( celsius * 1.8) + 32
4+
print(f'If the temperature local is {celsius}°C converting it will be {fahrenheit}°F.')

ex015.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#Escreva um programa que pergunte a quantia de Km percorridos por um carro alugado e a quantidade de dias pelos quais
2-
# ele foi alugado. Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado.
3-
km = int(input('Digite quantos Km você rodou com o carro:'))
4-
dia = int(input('Quantos dias você ficou com o carro:'))
5-
vd = dia * 60
6-
vkm = km * 0.15
7-
print('Logo se você ficou {} dias com o carro e rodou {}Km com ele, logo você deverá pagar R${}.'.format(dia, km, (vd +vkm)))
1+
# Write a program that asks the number of km traveled by a rented car and the number of days for which
2+
# it was rented. Calculate the price to pay, knowing that the car costs R$60 per day and R$0.15 per km driven.
3+
km = int(input(' Enter how many Km you have driven the car:'))
4+
day = int(input('How many days did you keep the car:'))
5+
value_day = day * 60
6+
value_km = km * 0.15
7+
print('If you stayed {} days with the carand it ran {}Km with him, then you must pay R${}.'.format(day, km, (value_day +value_km)))

0 commit comments

Comments
 (0)