6. The following piece of code computes and prints the sum of all the of odd values in the array Integer. Locate the err
Posted: Fri Apr 29, 2022 6:35 am
The language is C.
6. The following piece of code computes and prints the sum of all the of odd values in the array Integer. Locate the errors and show how to fix them. [7] int Integer[] = {-9,8,10,2,1,-1,4,-7,3,12]; int i; S; while(i <= 10) { if(i$2) S + Integer (i); i; } printf("%f", S);
6. The following piece of code computes and prints the sum of all the of odd values in the array Integer. Locate the errors and show how to fix them. [7] int Integer[] = {-9,8,10,2,1,-1,4,-7,3,12]; int i; S; while(i <= 10) { if(i$2) S + Integer (i); i; } printf("%f", S);