Q253
What will be the output of the following code in C++? #include int ETF(int n) int a, result = n; for (a = 2; a * a 1) result = result - result / n; return result; int main() int n; for (n = 1; n <= 4; n++) printf("%d ", ETF(n)); return 0;
A.
0 1 2 3
B.
0 1 2 4
C.
1 1 2 2
AnswerD.
1 2 3 4
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board