Question: Write a loop to print the numbers 2 to 8 . Which condition should be in the blank? x < - 2 while _ _

Write a loop to print the numbers 2 to 8. Which condition should be in the blank?
x <-2
while _____?______{
print(x)
x <- x +1
}
Question 25Answer
A.
(x >=2 & x <8)
B.
(x >1 & x <=8)
C.
(x <8)
D.
(x >2 & x <8)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!