Tuesday, October 1, 2019

Factor using sub

FACTOR USING SUB


DECLAFE SUB FACTOR(N)
CLS
INPUT"ENTER ANY NO";N
CALL FACTOR(N)
END

SUB FACTOR(N)
FOR I=1 TO N
IF  N MOD I=0 THEN PRINT I
NEXT I 
END SUB

No comments:

Post a Comment

My JM Experience

School life is very important part of one's life, because it provides opportunity for study and discipline. Besides these, the scho...