RosettaCodeData/Task/Pascals-triangle/Run-BASIC/pascals-triangle.run

11 lines
197 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
input "number of rows? ";r
for i = 0 to r - 1
c = 1
print left$(" ",(r*2)-(i*2));
for k = 0 to i
print using("####",c);
c = c*(i-k)/(k+1)
next
print
next