Skip to content

Commit 3c2a2cc

Browse files
committed
updated
from portuguese to english
1 parent fdf6b3a commit 3c2a2cc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ex012.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#Faça um algoritmo que leia o preço de um produto e mostre o seu novo preço com 15% de desconto
2-
produto = float(input('Digite o valor do produto em R$:'))
3-
print('...Calculando seu desconto...')
4-
desconto = produto - (produto * 0.15)
5-
print('Seu produto de R${} com 15% de desconto ficará R${:.2f}'.format(produto, desconto))
1+
# Create an algorithm that reads the price of a product and shows its new price with a 15% discount
2+
product = float(input('Enter a price of a product R$:'))
3+
print('...Calculating the discount...')
4+
discount = product - (product * 0.15)
5+
print('Your product R${} with 15% of discount will be R${:.2f}'.format(product, discount))

ex013.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Faça um programa que leia o salário de um funcionário e mostre seu novo salário com 15% de aumento.
2-
salario = float(input('Digite o valor do seu salário em R$:'))
3-
print('Calculando seu novo salário com aumento de 15%...')
4-
aumento = salario + (salario * 0.15)
5-
print(f'Seu novo salário será de R${aumento}.')
1+
# Make a program that reads an employee's salary and shows his new salary with a 15% increase.
2+
salary = float(input('Enter your salary in R$:'))
3+
print('Calculating you new salary with a 15% increase...')
4+
increase = salary + (salary * 0.15)
5+
print(f'Your new salary will be R${increase}.')

0 commit comments

Comments
 (0)