Remove the semi colon at the end of line 9, and change the variable type to unsigned int
so that you don't get integer overflow.
#include <stdio.h>
int main(void)
{
unsigned int n, prod, even;
prod = 1;
n = 30;
for (even = 2 ; even <= n; even += 2)
prod *= even;
printf("product of all positive even numbers less than or equal to %u is %u\n", n, prod);
printf("\npress Enter to exit...");
getchar();
return 0;
}