7 תשובות
אוקיי את אחד את יכולה לעשות:
number = 1
total = 0
while number >0
total +=1
number = input(int("number?))

print(total)
2:

number = 1
sum = -1
total = 0
while number >0
total +=1
sum = sum + number
number = input(int("number?))

print(total)
print(sum)
3:
number = 1
sum = -1
total = 0
while number >0
total +=1
sum = sum + number
number = input(int("number?))

print(total)
print(sum)
print(sum/total)
לא בדקתי אבל מקווה שעובד לך
שואל השאלה:
אני אנסה תודה רבה הצלת אותי
אנונימית
4:
height = 1
while height >0
height = input(int("height?"))
if height >1.65
bigger +=1
sum = sum + height
count +=1


print(height,"kids are taller then 1.65m, and the avg height is ",sum/count)
בכיף