C++ Return Factorial

email me
#include "stdafx.h"
#include<iostream>

using namespace std;

int main()
{
	unsigned int userInput;
	unsigned long long factorial = 1;

	cout << "Enter an integer: ";
	cin >> userInput;	

	for (int i = 1; i <= userInput; ++i)
	{
		factorial *= i;
	}

	cout << "Factorial of " << userInput << " = " << factorial;
	cin.get();

	cin.get();

	return 0;
}