How many times will the following loop execute ?
X=1
Do While X<=16
Print X
X=X+2
Answers
Explanation:
I think in this question there is syntax error, because no that type of loop is exist in any language(c,cpp,java,python,perl,e.t.c)
but if,
X=1
do
print X
X=X+2
while(x<=16) then it is correct
and then 8 times will loop is executed
Answer:
Loop will execute 10 times
Explanation:
The following sorts of loops are available in the Python programming language to satisfy looping needs. Python offers three options for running the loops. The basic functionality of all the methods is the same, but their syntax and the amount of time required for condition checking vary. A while loop in Python is used to repeatedly run a block of statements up until a specified condition is met. And the line in the programme that follows the loop is run when the condition changes to false.
Syntax:
while statement:
expression (s)
A block of code is defined as all the statements that follow a programming construct with the same number of character spaces indented. Python groups statements together with indentation.
# Python program to illustrate
# while loop
count = 0
while (count < 3):
count = count + 1
print("Hello Geek")
See more:
https://brainly.in/question/34876724
#SPJ3