Given the code segment below, indicate the output for the following initial values of (mathrm{x}, mathrm{y}), and

Question:

Given the code segment below, indicate the output for the following initial values of \(\mathrm{x}, \mathrm{y}\), and \(\mathrm{z}\) :

image text in transcribed

A. What is the output if the integer variable \(x\) contains \(1, y\) contains 0 , and \(z\) contains 2 ?
B. What is the output if the integer variable \(x\) contains \(0, y\) contains 1 , and \(z\) contains -1 ?
\({ }^{*} \mathrm{C}\). What is the output if the integer variable \(\mathrm{x}\) contains \(1, \mathrm{y}\) contains 2 , and \(\mathrm{z}\) contains 1 ?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: