142) Consider the following program fragment
d = 0;
for(i = 1; i < 31; ++i)
for(j = 1; j < 31; ++j)
for(k = 1; k < 31; ++k)
if(((i + j + k) % 3)== 0)
d = d + 1;
printf("%d", d );
The output will be
Answer is:
9030
Related C Programming MCQ with Answers
Answer is:
Pointer to a file
Answer is: