Basic Program To Calculate Length of String,Go to left,Go to Length of String from there

REM CAL LENGTH OF STRING,GO TO LEFT,GO TO LENGTH OF STRING FROM THERE
REM AND THEN START REDUCING ONE BY ONE FROM LEFT
CLS
LET A$ = “RAJAT SHUKLA”
LET C = LEN(A$)
FOR D = C TO 1 STEP -1
LET C$ = LEFT$(A$, D)
PRINT C$
NEXT D
END

Please follow and like us:

Leave a comment