alnaceniniya alnaceniniya
  • 21-06-2020
  • Computers and Technology
contestada

predict the output
the following is a segment of program
x=1 y=1
if (n>0)
{
x=x+1
y=y+1
}
what will be the value of x and y if n assumes a value
1 , 0

​

Respuesta :

atolagbeoluwasegun
atolagbeoluwasegun atolagbeoluwasegun
  • 22-06-2020

Answer:

If n is 0, then nothing happens because m is not greater than 0.

If n is 1, then x is 2 and y is 2.

Explanation:

The if condition is true (1>0), so x becomes 1+1 and y becomes 1+1.

Answer Link

Otras preguntas

a man buys an article for $600 and sells it for $710/ what is the profit or loss​
. Suppose that a farmer grows wheat, which she sells to a miller for $10. The miller turns the wheat into flour, which she sells to a baker for $55. The baker t
22. Emily Dickinson's poetry was as intellectual as it was imaginative. Which aspect of the poet's life heavily informed this quality in her work? Her involveme
Starting with only the Balmer series light (visible light), how could we ensure that the solar panels generate a current that Mark can use for his power station
Explain why some parts of a plant can act as both a source and a sink.
Why long cell easily go through the cell
????????????helpppp please
select the answer that best describes what cultural competence is.
(If someone is online)pls help me to answer this question
Write every existing subject pronoun in spanish, make sure to show the english version and spanish version !Example : Her --> EllaHappy Holidays Everyone ! -