Computers and Technology
Computers and Technology, 25.04.2020 03:06, bcox32314

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--;

}

}

}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:00, TamB01
How can i clip a picture to a question on the computer?
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, ozzy55
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
image
Computers and Technology, 22.06.2019 23:00, maxy7347go
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
image
Computers and Technology, 24.06.2019 03:30, etxchrissy
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
Do you know the correct answer?
2’

Increment & Decrement – Find The Bugs!
The following code is intended to...

Questions in other subjects:

Konu
Mathematics, 27.04.2021 19:00