# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
sum=0

number=int(input("請輸入次數:"))
for i in range(1,number+1):
     if i%2 ==0:
      sum+=i
      print(i)
print("上面數字皆是偶數")
print("上面加總為",sum)
print("程式執行完畢")
500e1109312c06a0b9761b8984e78aea98b5f7fe
<mask token>

<mask token>
for i in range(1, number + 1):
    if i % 2 == 0:
        sum += i
        print(i)
print('上面數字皆是偶數')
print('上面加總為', sum)
print('程式執行完畢')

<mask token>
sum = 0
number = int(input('請輸入次數:'))
for i in range(1, number + 1):
    if i % 2 == 0:
        sum += i
        print(i)
print('上面數字皆是偶數')
print('上面加總為', sum)
print('程式執行完畢')

# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
sum=0

number=int(input("請輸入次數:"))
for i in range(1,number+1):
     if i%2 ==0:
      sum+=i
      print(i)
print("上面數字皆是偶數")
print("上面加總為",sum)
print("程式執行完畢")