[Solved] Why does this float have 2 different values?
Your code isn’t C, but this is: #include <stdio.h> int main () { float add = 0; int count[] = { 3, 2, 1, 3, 1, 2, 3, 3, 1, 2, 1 }; for (int i = 0; i < 11; i++) { add += 1 / ((float) count[i] + 1); } printf(“%f\n”, add); return … Read more