# Question 4 What should be entered to make the loop print 60 70 80 x= 50 while $(x<80)$ : $x=x+$ $\qquad$ print $(x)$
Attachments
Image attachment 1 for homework question
Image attachment 1
6 months agoReport content

Answer

Full Solution Locked

Sign in to view the complete step-by-step solution and unlock all study resources.

Step 1
: In the given loop, we need to increase the value of x by 10 in each iteration so that it prints 60, 70, and 80.

We can do this by adding 10 to x in the loop statement. While loop statement: x = x + 10

Step 2
: After updating the loop statement, the code will look like this:

print$$\ (x)
x = 50

Final Answer

x = 50 while (x < 80): x = x + 10 print\ (x)