
int b,e,i,n
string pr,cr,tab
'
b=12 'choose base
e=9  'chose number of digits

cr=chr(13)+chr(10)
tab=chr(9)
pr="Base " b " digit values:" cr cr
pr+="place" tab "value" cr
n=1
for i=1 to e
  pr+=i tab n cr
  n*=b
next

print pr