Computer Science, asked by aksinghafg, 5 months ago

50-a=10
B=15
for i in range (a, b, 2)
print (a*i)
what will be the output of this?
A. 100, 120, 140
B. 100, 110, 140
C. 100, 111, 112
D. None of these ​

Answers

Answered by jai696
2

The provided code is incorrect. If it's corrected the output will be 100, 120, 140

Corrected code:

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

a, b = 10, 15

nums = []

for i in range(a, b, 2):

nums = [*nums, str(a * i)]

print(", ".join(nums))

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

Similar questions