i have a problem here.
#include<stdio.h>
int main (){
int counter;
int x;
int y;
int product;
counter=1;
x=1;
y=1;
product=1;
while (counter<=5){
printf("%d>%d\n",x,y);
x=x+1;
y=y+2;
counter=counter+1;
product=product*y;
}
printf("Product>%d",product);
return 0;
}
well,the product should be 945.but what have printf out is 10395?what is the provlem inside the code?help pls.