hey can any 1 help me out here coz i am new to c++ and have couple of errors
Using a program that gets the product of even numbers and sum of odd numbers between 1000 and 100, demonstrate the syntax and implementation of the different types of loops.
have like 6 errors
main(void)
{
inti,sum=0,prod=2;
for(i=1000;i<=100;i--)
{
if(i%2==0)
{
product=product*1;
}
else
{
sum=sum-i
}
}
printf("the product is %d",prod);
printf("the sum is %d",sum);
};
what wrong have i done