Skip to content

Commit 7fa6fd4

Browse files
committed
doc: add comments
Exercises with commented arithmetic operators. Multiplication table.
1 parent a825664 commit 7fa6fd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex009.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#multiplication table.
12
#09- Write a program that reads any integer and displays its multiplication table on the screen.
23
number = int(input('Enter a value:'))
34
print('-=' * 20)
@@ -15,6 +16,7 @@
1516
print('{} x 9 = {}.'.format(number, number*9))
1617
print('{} x 10 = {}.'.format(number, number*10))
1718

19+
#tabuada.
1820
#9: Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabuada.
1921
'''numero = int(input('Digite um número inteiro e eu lhe mostrarei sua tabuada:'))
2022
print(f'A tabuada do número {numero}:')

0 commit comments

Comments
 (0)