After the following pseudocode executed, what is the final value of x if x=-9 and y=6? if(x>10 or y<=5) x+=y
Added by F-Tima R.
Close
Step 1
Step 1: The given pseudocode is: if(x > 10 or y <= 5) x += y The given values are x = -9 and y = 6. Show more…
Show all steps
Your feedback will help us improve your experience
Shaiju T and 60 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
What is the number stored in x after the following sequence of pseudocode instructions? x:= 2 y:= 4 if x - 2 < y + 1 or y - 1 > x + 3 then y:= y + 1 x:= y + x x:= x + y
Shaiju T.
Given: (x+y)2. Evaluate the expression if = 6 and if y = 9
Tim T.
integer x integer y x=2 y= 6 if x<10 if y <5 y= y +1 else y=7 else y= y +10 A) 6 b) 7 c) 16 d) 17
Shu N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD