Ask Question
10 January, 21:51

System. out. print ((k%3) + " "); if ((k % 3) = = 0) k = k + 2; else k++; } what is printed as a result of executing the code segment? question 21 options:

a. 0 2 1 0 2

b. 0 2 0 2 0 2

c. 0 1 2 1 2 1 2

d. 0 2 0 2 0 2 0

e. 0 2 1 0 2 1 0

+4
Answers (1)
  1. 10 January, 22:14
    0
    Either B or D. Your question is missing information.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “System. out. print ((k%3) + " "); if ((k % 3) = = 0) k = k + 2; else k++; } what is printed as a result of executing the code segment? ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers