Q BASIC PROGRAM TO PRINT FACTORIAL OF A GIVEN NUMBER. FUNCTION
DECLARE FUNCTION FACT(N)
CLS
INPUT "ENTER ANY NUMBER";N
PRINT "FACTORIAL=";FACT(N)
END
FUNCTION FACT(N)
F=1
FOR I = 1 TO N
F=F*I
NEXT I
FACT = F
END FUNCTION
Search This Blog
Wikipedia
Search results
Tuesday, October 1, 2019
Subscribe to:
Post Comments (Atom)
Journey of Jagat Mandir H. S. School When I was at the age of three I joined the school in the village. When I came to K...
-
Journey of Jagat Mandir H. S. School When I was at the age of three I joined the school in the village. When I came to K...
-
Janai Purnima Janai Purnima is a Hindu festival celebrated all over the country. It is the day when people get chance to change old ...
-
QBASIC PROGRAM TO FIND REVERSE OF THE STRING .SUB DECLARE SUB REV(N$) CLS INPUT "ENTER A WORD ";N$ CALL REV (N$) END ...
No comments:
Post a Comment