document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.     int i, n, f=1;
  9.     cout<<" Masukkan bilangan positif ? ";
  10.     cin>> n;
  11.     cout<<n<<" faktorial = ";
  12.     for(i=2; i<=n; i++){
  13.              f*= i;
  14.              }
  15.              cout<< f << endl;
  16.    
  17.     system("PAUSE");
  18.     return EXIT_SUCCESS;
  19. }
');