Skip to content

Instantly share code, notes, and snippets.

@lazyakshay
Created September 29, 2017 16:30
Show Gist options
  • Save lazyakshay/40f4920e85ea717ba4ba5f49d33ff50a to your computer and use it in GitHub Desktop.
Save lazyakshay/40f4920e85ea717ba4ba5f49d33ff50a to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
// cout << "Hello World!" << endl;
long long n,sum=1;
cin>>n;
for(int i=1;i<=n;i++) sum *= i;
cout<<sum;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment