QBASIC PATTERN : 55555,4444,333,22,1
CLS
FOR I = 5 TO 1 STEP -1
FOR J = 1 TO I
PRINT I;
NEXT J
PRINT
NEXT I
END
USING SUB
DECLARE SUB PATTERN()
CLS
CALL PAT
END
SUB PAT
FOR I = 5 TO 1 STEP -1
FOR J = 1 TO I
PRINT I;
NEXT J
PRINT
NEXT I
END SUB
0 Comments