Skip to content

Commit d972867

Browse files
committed
doc: add comments
Exercises with commented arithmetic operators. Painting Wall.
1 parent 551b692 commit d972867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex011.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Painting Wall.
12
#11- Write a program that reads the width and height of a wall in meters, calculates the amount of paint needed to
23
# paint it, knowing that each liter of paint paints an area of 2m².
34
area_q = float(input('Enter the height in meters of the wall you want to paint:'))
@@ -6,6 +7,7 @@
67
liter = area / 2
78
print(f'If you have an area of {area}m soon you will need {liter} liters to paint it.')
89

10+
#Pintando Parede.
911
#11: Faça um programa que leia a largura e a altura de uma parede em metros, calcule a sua área e a quantidade de tinta
1012
# necessária para pintá-la, sabendo que cada litro de tinta pinta uma área de 2 metros quadrados.
1113
'''print('Vamos calcular quantos litros de tinta você vai precisar para pintar uma parede?')

0 commit comments

Comments
 (0)