find the factorial number of a given number in QBASIC program
Answers
Answered by
10
Question:-
➡ Write a program to find the factorial of a given number.
Program:-
CLS
INPUT "ENTER A NUMBER: ",A
F=1
FOR I=1 TO A STEP 1
F=F*I
NEXT I
PRINT "FACTORIAL IS: "+F
END
Answered by
6
Answer:
A PROGRAM TO PRINT FACTORIAL OF A NUMBER
CLS
INPUT N
FOR I=1 TO N
F=F*I
NEXT I
PRINT I
END
Similar questions