Factorial using c

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> void main(void) { int f = 1, i , num ; printf("Enter your Number :"); scanf("%d",&num); for( i = 1 ; i <= num ; i++){ f *= i ; } printf("The factorial of %d is %d",num,f); }
Editor Settings
Theme
Key bindings
Full width
Lines