CLS
n = 2
FOR i = 1 TO 5
PRINT n
n = n * 10 + 2
NEXT i
END
n = 2
FOR i = 1 TO 5
PRINT n
n = n * 10 + 2
NEXT i
END
Using SUB Procedure
DECLARE SUB ptrn()
CLS
CALL ptrn
END
SUB ptrn
n = 2
FOR i = 1 TO 5
CLS
CALL ptrn
END
SUB ptrn
n = 2
FOR i = 1 TO 5
PRINT n
n = n * 10 + 2
NEXT i
END SUB
Using FUNCTION Procedure
DECLARE FUNCTION ptrn()
CLS
d = ptrn
END
FUNCTION ptrn
n = 2
FOR i = 1 TO 5
PRINT n
n = n * 10 + 2
NEXT i
END FUNCTION
CLS
d = ptrn
END
FUNCTION ptrn
n = 2
FOR i = 1 TO 5
PRINT n
n = n * 10 + 2
NEXT i
END FUNCTION
No comments:
Post a Comment
If you have any doubts, Please let me know.