Page 1 of 1

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:37 am
by answerhappygod
6 The Following Piece Of Code Computes And Prints The Sum Of All The Of Odd Values In The Array Integer Locate The Err 1
6 The Following Piece Of Code Computes And Prints The Sum Of All The Of Odd Values In The Array Integer Locate The Err 1 (33.15 KiB) Viewed 39 times
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);