CODE
#include <iostream.h>
#include <stdlib.h>
{ system (“CLS”)
;
Int I ,
num , fact = 1 ;
Cout <<
“/nEnter integer : “ ;
Cin >>
num ;
I = num
;
While (num)
{ fact * =
num ;
-
- num ;
}
Cout <<
“ The factorial of “ << I ;
<< “ is” << fact <<”\n”
;
Return 0 ;
}
0 comments:
Post a Comment