Site icon Pathshala Nepal

Write a program to print string pattern. N NEP NEPAL.

Q BAISC OS
Online Calculator

Write a program to print string pattern.

N
NEP
NEPAL.


1 Answer


CLS

A$ = "NEPAL"

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

B$ = LEFT$ (A$, I)

PRINT B$

NEXT I

END

 

Topics from Computer
Related Questions