give an output n=4 , for i in range (0,n) print i
Answers
Answered by
0
Answer:
0
1
2
3
Explanation:
if it's python programming language then compiler will print till n-1
Answered by
0
Answer:
Output = 0, 1, 2, 3.
Explanation:
I suppose this is a Python program.
Here, we assumed n = 4.
And, we constructed a loop that prints the value "i" until (n-1) is reached. So, starting from 0, we move to 1, and then 2, and then finally 3 ( n - 1 = 4 - 1 = 3)
Similar questions