Skip to content

Instantly share code, notes, and snippets.

@SOURAV-ROY
Last active July 5, 2019 16:50
Show Gist options
  • Select an option

  • Save SOURAV-ROY/c37e96b7144f560f2fda to your computer and use it in GitHub Desktop.

Select an option

Save SOURAV-ROY/c37e96b7144f560f2fda to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int i, n, fact = 1;
printf("Enter The Number\n");
scanf("%d", &n);
for (i = 1; i <= n; i++)
fact = fact*i;
printf("Factorial The Number %d = %d\n", n, fact);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment