diff --git a/Maths/Factorial/C/factorial.c b/Maths/Factorial/C/factorial.c index 818b68ce..eb16373d 100644 --- a/Maths/Factorial/C/factorial.c +++ b/Maths/Factorial/C/factorial.c @@ -11,6 +11,9 @@ long long factorial(long long n) { } int main(int argc, char * argv[]) { - printf("Enter a number"); - scanf("%d",&n); + + long long n; + printf("Enter a number: "); + scanf("%lld",&n); + printf("Factorial = %lld\n", factorial(n)); }