int check(int i) { return i >= 0 && i < 10; } int main() { int num = 0; for (int i = 0; check(i); i += 1) { num = num + 1; } return num; }