Basic Program To Calculate Length of String,Go to left,Go to Length of String from there
1May.2018
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
No Comments