wap in qbasic to print the factorial of a number
Answers
Answered by
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