Hi can you help me in large factorial problem

Make these 2 changes in your code
#define MAX 2000

and in line 9 make it run till x equal to n
for(int x = 2;x<=n;x++)