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, 21.06.2019 16:00
How do i draw hello world in python and how do i make it loop?
Answers: 1
question
Computers and Technology, 22.06.2019 08:10
Alook-up table used to convert pixel values to output values on a monitor. essentially, all pixels with a value of 190 or above are shown as white (i.e. 255), and all values with a value of 63 or less are shown as black (i.e. 0). in between the pixels are scaled so that a pixel with a value p is converted to a pixel of value 2/127 โˆ’+3969). if a pixel has a value of 170 originally, what value will be used to display the pixel on the monitor? if a value of 110 is used to display the pixel on the monitor, what was the original value of the pixel?
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Hassan is writing his masterโ€™s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
You know the right answer?
2โ€™

Increment & Decrement โ€“ Find The Bugs!
The following code is intended to...
Questions
question
English, 10.12.2020 01:30
question
Health, 10.12.2020 01:30
Questions on the website: 13722360