# 计数器控制,让偶数累加"""1. 准备要累加的数据2. 准备存储结果的变量3. 循环计算4. 输出结果"""i = 0result = 0while i <= 100: result += i i += 2print(result)