MCPcopy Create free account
hub / github.com/geekcomputers/Python / table

Function table

multiplication_table.py:20–31  ·  view source on GitHub ↗
(rows, columns)

Source from the content-addressed store, hash-verified

18
19
20def table(rows, columns):
21 columns = int(columns)
22 rows = int(rows)
23 for r in range(1, rows + 1):
24 c = r
25 print(r, end="\t")
26 i = 0
27 while columns - 1 > i:
28 print(c + r, end="\t")
29 c = c + r
30 i += 1
31 print("\n")
32
33
34table(rows, columns)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected