Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <cmath>
- #include <iostream>
- using namespace std;
- int main()
- {
- int fact = 1;
- int n = 4;
- for (int j = 1; j <= n; j ++)
- fact *= j;
- cout << fact << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement