series 1,22,333,4444,55555

The following program  generate the series 1,22,333,4444,55555 


CLS
FOR i = 1 TO 5
a = a + 10 ^ (i - 1)
PRINT i * a,

NEXT i

Comments

Samjhauta said…
cls
a=1
for i= 1 to 5
print a*i
a=a*10+1
next i
end

Popular posts from this blog

PROGRAM TO FIND SQUARE, CUBE, SQUARE ROOT AND CUBE ROOT OF GIVEN NUMBER

PALINDROME AND ARMSTRONG PROGRAMS

PROGRAM TO DISPLAY SUM, PRODUCT, DIFFERENCE AND PRODUCT OF TWO / THREE NUMBERS