Friday, 16 May, 2025

1:02 pm [NEPAL, GMT+5:45]

Coming Soon .... !

WAP to find the Factorial of a given number

Question:
Write a program to find the factorial of a given number.

 

Ans:

      INPUT “Enter the number :::” ; n

      f = 1

      For i  = 1 TO n

      f = f * i

      NEXT I

      PRINT “Factorial of the given number = ” ; f

      END