Skip to content

Instantly share code, notes, and snippets.

@SwadhInz
Created August 20, 2015 08:53
Show Gist options
  • Save SwadhInz/36fc37cc5caf328c4d5c to your computer and use it in GitHub Desktop.
Save SwadhInz/36fc37cc5caf328c4d5c to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int n, k;
long long int f;
scanf("%d", &n);
f = 1;
for(k = 1; k <= n; k++)
f *= k; //f = f * k;
printf("%lld\n", f);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment