Which has an error? Assume x = 10 and y = 20.
Added by Daniel S.
Step 1
However, since no specific operation or context is provided, we will assume we are checking for basic arithmetic operations. Show more…
Show all steps
Your feedback will help us improve your experience
Shu Naito and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Shu N.
What values are stored in $x$ and $y$ after execution of the following program segment? int $x=30, y=40$ if $(x>=0)$ \{ If $(x<100)$ $i$ $y=x * 3$ if $(y<50)$ $x /=10$ else $y=x+2$ $y$ else $y=-x$ (A) $x=30 y=90$ (B) $x=30 y=-30$ (C) $x=30 y=60$ (D) $x=3 \quad y=-3$ (E) $x=30 y=40$
|X-y/y-x|:if x =-6 and y=13
Kathleen C.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD