Computer Science, asked by raunakrsethi, 9 months ago

x=2
for iin range(x):
X+=
1
print (x) .find the output​

Answers

Answered by allysia
1
Let me correct the codes first:

-------------------------------------------

x=2

for i in rage (x):

   x+=1

   print(x)

-------------------------------------------

The output will be:

---------------------------------------------

3

4

---------------------------------------------

NOTE: I have run it in python cause to me it looks like a python code.
Attachments:
Answered by jai696
3

\huge\red{\mid{\fbox{\tt{ANSWER}}\mid}}

Output will be:

3

4

\huge\blue{\mid{\fbox{\tt{Explanation}}\mid}}

The loop will run 2 times and increase the value of x by 1 each time.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions