Computer Science, asked by swarnava031, 2 months ago

wap in qbasic to print the factorial of a number​

Answers

Answered by jeromeseejo73
3

Answer:

CLS

INPUT "Enter a Number: ", n

fact = 1

FOR i = 1 TO n

fact = fact * i

NEXT i

PRINT "Factorial of ";n;" is ";fact

END

Similar questions