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.

Revisions

  1. SOURAV-ROY revised this gist Jul 5, 2019. No changes.
  2. SOURAV-ROY created this gist Sep 5, 2014.
    16 changes: 16 additions & 0 deletions FACTORIAL
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #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;
    }