Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
nmax=12, xx=3
|
||||
s= blanks(xx)+" |"
|
||||
for j=1:nmax
|
||||
s=s+part(blanks(xx)+string(j),$-xx:$)
|
||||
end
|
||||
printf("%s\n",s)
|
||||
s=strncpy("-----",xx)+" +"
|
||||
for j=1:nmax
|
||||
s=s+" "+strncpy("-----",xx)
|
||||
end
|
||||
printf("%s\n",s)
|
||||
for i=1:nmax
|
||||
s=part(blanks(xx)+string(i),$-xx+1:$)+" |"
|
||||
for j = 1:nmax
|
||||
if j >= i then
|
||||
s=s+part(blanks(xx)+string(i*j),$-xx:$)
|
||||
else
|
||||
s=s+blanks(xx+1)
|
||||
end
|
||||
end
|
||||
printf("%s\n",s)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue