subject

2’

Increment & Decrement – Find The Bugs!
The following code is intended to increment / decrement A and B until A is equal to X and B is equal to Y. Find the bugs!

(int a, int b, int x, int y)

{

while (a != x && b != y)

{

if (a > x)

{

a++;

}

else

{

a--;

}

if (b > y)

{

b++;

}

else

{

b--;

}

}

}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituídas por um conjunto de atributos, que definem as propriedades ou características relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
You know the right answer?
2’

Increment & Decrement – Find The Bugs!
The following code is intended to...
Questions
question
Mathematics, 29.10.2021 18:00
question
Mathematics, 29.10.2021 18:10
question
Mathematics, 29.10.2021 18:20
question
Mathematics, 29.10.2021 18:20
Questions on the website: 13722361