Answers for "coctail table"

0

table

"""it's to get a table upto any number without linespacing trouble"""
a =int(input("upto:"))
n=a+1
for i in range(1,n):
  for j in range(1,11):
    print((len(str(a*a))-len(str(i*j))+1)*" ",end='')
    print(i*j,end='')
  print()
Posted by: Guest on March-10-2021

Browse Popular Code Answers by Language