Created
February 18, 2018 08:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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