3 ms·
int result; for (int i = 0; i < 77232917; i++) { result = 2 * 2; <----- you basically said result=4 77232917 times } return result - 1; <--- and
by nopacience 9y ago
int result;
for (int i = 0; i < 77232917; i++) {
result = 2 * 2; <----- you basically said result=4 77232917 times
}
return result - 1; <--- and then 4-1=3
so of course it will always be 3
- colanderman 9y agoThat is the joke.