Question PRG-C-0067
HardWhat is the output of this program?
#include <stdio.h>
int main() {
int i = 0, s = 0;
while (i < 10) {
i++;
if (i % 2) continue;
if (i > 7) break;
s += i;
}
printf("%d %d", s, i);
return 0;
}
- A.
6 8
- B.
20 10
- C.
Sign up free to see the answer and a step-by-step explanation.