This is just a test C program that I want it to calculate the product of 13 digits
#include <stdio.h>
#include <stdlib.h>
int main ()
{
long prod;
prod = 5*5*7*6*6*8*9*6*6*4*8*9*5;
printf ("%ld\n", prod);
system("pause");
return 0;
}
but it just says
[Warning] integer overflow in expression [-Woverflow]
The program runs but it displays a very different product value than the real one... I tried to change the int and the long int to float and double and not sure what to do next.