Programming Tutorial (C / Windows/ Prolog)
CLOUD COMPUTING | DATA MINING | ARTIFICIAL INTELLIGENCE | APPLICATION PROGRAMMING IN C/C++/Java
Wednesday, May 4, 2011
PROGRAM TO CALCULATE FACTORIAL OF A NUMBER
fact(0,1).
fact(P,Q):-P1 is P-1,fact(P1,Z), Q is Z*P.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment