Qbasic program


# Write a program that asks any number and calculates its factorial.
     ClS
     INPUT”ENTER ANY NUMBER ”;N
      F=1
      For I=1 to N
      F=F*1
      NEXT I 
       PRINT”Factorial=“;F
       END
       

Comments

Post a Comment

Popular posts from this blog

MY JOURNEY OF 11 YEARS WITH JM

Teej