Advanced Placement (AP)
Advanced Placement (AP), 14.11.2019 16:31, chaanah

Int[ ] a = {11, 33, 55, 77};
int i = 0;
while (i < a. length)
{
if (a[i] < 50)
{
a[i] = a[i] % 3;
}
else
{
a[i] = a[i - 1] + a[i];
}
i++;
}
{2, 0, 88, 165}
{2, 3, 88, 165}
{2, 0, 55, 165}
{2, 0, 55, 132}
an endless loop occurs

answer
Answers: 2

Similar questions

Do you know the correct answer?
Int[ ] a = {11, 33, 55, 77};
int i = 0;
while (i < a. length)
{
if (a[...

Questions in other subjects:

Konu
Mathematics, 09.01.2021 14:10
Konu
Mathematics, 09.01.2021 14:10
Konu
Mathematics, 09.01.2021 14:10
Konu
Mathematics, 09.01.2021 14:10
Konu
Mathematics, 09.01.2021 14:10
Konu
Social Studies, 09.01.2021 14:10