#include <stdio.h>
int main()
{
int numArrays[] = {2, 67, 23, 5, 7, 34, 14, 4, 8, 62};
int i;
printf("Odd Numbers in numArray:\n");
for(i=0;i<10; i++)
{
if(numArray[i]%2==1)
{
printf("%d ",numArray[i]);
total += i;
sum=sum+total;
sum=sum+1;
printf("There are %d odd numbers\n", sum);
}
}
printf("even numbers in numArray;\n");
for(i=0; i<10; i++)
{
if(numArray[i]%2==0)
{
printf("%d", numArray[a]);
total += i;
sum=sum+total;
sum=sum+1;
printf("There are %d odd numbers\n", sum);
}
}
}
whats the problem of this code? im just a biggener ...hehehe