Чому дорівнює s після виконання циклу
a) s = 0
for i in range(5, 7, 1):
s = s+1
print('i= ', i)
print('s= ', s)
b) s = 0
for i in range (5, 7, 1):
s = s+i
print('i= ', i)
print('s= ', s)
c) s = 0
for i in range (10, 5, 1):
s = s+1
print('i= ', i)
print('s= ', s)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.