Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created February 18, 2018 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arrbxr/9f827de2907a0fd0360714ce82925fcb to your computer and use it in GitHub Desktop.
Save arrbxr/9f827de2907a0fd0360714ce82925fcb to your computer and use it in GitHub Desktop.
To Find Factorial No created by arrbxr - https://repl.it/@arrbxr/To-Find-Factorial-No
#include "stdio.h"
int main(void) {
int i, num, fac = 1;
printf("Enter Number To find Factorial : ");
scanf("%d", &num);
for(i=1; i<=num; i++){
fac *=i;
}
printf("Factorial = %d", fac);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment