It's not whether you get knocked down, it's whether you get up."
Wednesday, 2 October 2019
Wap to display factorial
CLS
REM' A PROGRAM TO FIND THE FACTORIAL OF A NUMBER
INPUT "ENTER A NUMBER:", N
F = 1
FOR I = 1 TO N
F = F * I
NEXT I
PRINT "THE FACTORIAL IS", F
END
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment