Display factorial of input no.

DECLARE FUNCTION FACTORIAL(N)
CLS
INPUT"ENTER ANY NUMBER";N
PRINT"THE FACTORIAL OF GIVEN NO. IS=";FACTORIAL(N)
END

FUNCTION FACTORIAL(N)
F=1
FOR I= 1 TON
F=F*I
NEXT I
FACTORIAL=F
END SUB

Comments

Popular posts from this blog

My experience in jagat mandir school

PERFECT SQR OR NOT

Picnic experience