logo

Crowdly

Consider:   current = 1   total = 0     while current ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Consider: 

current = 1 

total = 0 

 

while current <= 7: 

    if current % 2 != 0: 

        total = total + current 

    current = current + 1 

 

print("Total:", total) 

Complete the table. Record total at the end of the iteration that processes the stated value of current. [2 marks] 

Value of current being processed 

total at the end of that iteration 

3 
4 
5 
7 

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle1.maths.ed.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome