in the code you see everything is clear. but when i try to calculate 18 factorial is give output as " -898433024 " . what must i do help meCode:#include <stdio.h>
#include <conio.h>
int main(){
int ts;
int carpim;
printf("Enter Integer : ");
scanf("%d",&ts);
carpim=1;
while(1<ts){
carpim=carpim*ts;
ts=ts-1;
}
printf("Factorial = %d 'dir",carpim);
getch();
return 0;
}