Computer Science, asked by gokulsmc16, 1 year ago

What is the value of x after this sequence of instructions is carried out? x=0 for i in range(10): x=x+1 10 11 12 13

Answers

Answered by Ankur20000
0

10 is answer or output

Answered by aqibkincsem
0

(1) Option (a) There ought to be print proclamation. x = 0 for I in range (10); x = x + 1. print(x) Output: 1 2 3 4 5 6 7 8 9 10 (2) Option(a) The right sentence structure is x = input() Example: x = input("Enter your name: ") print(x) (3) Option(b) Note: There ought to be print proclamation. a=0 while(a<10) print (an) a=a+1.

Similar questions