Site icon Pathshala Nepal

Write a program to print string pattern. L, PAL, NEPAL.

Q BAISC OS
Online Calculator

Write a program to print string pattern.

L
PAL
NEPAL.


1 Answer


CLS

A$ = "NEPAL"

FOR I = 1 TO LEN (A$) STEP 2

B$ = RIGHT$ (A$, I)

PRINT B$

NEXT I

END

Topics from Computer
Related Questions