Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#counter = 2
#page = ""
#while counter <= 20:
  #page += "%4i" % counter
  #counter += 2
#print(page)
#def multipleRow(multiple):
  #counter = multiple
  #page = ""
  #while counter <= multiple * 10:
    #page += "%4i" % counter
    #counter += multiple
  #print(page)
#multipleRow(7)

def multipleRow(multiple):
  counter = multiple
  page = ""
  while counter <= multiple * 9:
    page += "%4i" % counter
    counter += multiple
  print(page)
multipleRow(1)
counter = 1
while counter <= 6:
  print(str(multipleRow(counter)))
  counter += 1