what is wrong in this code?
Broken calculator
hello @shubhangis248
u are using long long for factorial which is not sufficient because value of factorial can exceed the the range of long long.
the idea is to make use of array for storing each digits of factorial.
for more details pls check ->large factorial
It is showing segmentation fault
increase the size of array and then it should work
still showing segmentation fault
make its size 50 000(just a random guess ), and then try