Content
Ryan – CodingWithRyan 28m Let’s stop arguing over JavaScript vs Python and be thankful we don’t have to use COBOL (0024 200251 p0027 p0030 30031 00032 p0033 20034 DO035 10036 00037 00038 0039 PROCEDURE DIVISION. 0001-MAIN. INSPECT FUNCTION REVERSE(STR-1) TALLYING WS-LENT FOR LEADING SPACES. WS-LEN – LENGTH OF STR-1 – WS-LENI, DISPLAY WS-LEN. COVE 1 10 1.1 MOVE WS-LEN TO J. PERFORM REV-PARA WS-LEN TIMES. DISPLAY STR-1. GOBACK. REV-PARA. MOVE STR-1(J:1) TO STR-2(1:1). ADD 1 10 1.