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