Computer Science, asked by hrittikaghosh04, 4 months ago

find the factorial number of a given number in QBASIC program​

Answers

Answered by anindyaadhikari13
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 BrainlyProgrammer
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