Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <cmath>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int fact = 1;
  10. int n = 4;
  11. for (int j = 1; j <= n; j ++)
  12. fact *= j;
  13. cout << fact << endl;
  14. system("pause");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement