Skip to content

Commit f57dc3f

Browse files
committed
Update ex014.py
1 parent 15db891 commit f57dc3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ex014.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Escreva um programa que converta uma temperatura digitando em graus Celsius para graus Fahrenheit.
2-
c = int(input('Digite o valor da temperatura em graus Celcius:'))
3-
f = ( c * 1.8) + 32
4-
print('Se a temperatura local é de {}C convertendo ficará {:.2f}F.'.format(c, f))
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.')

0 commit comments

Comments
 (0)