# -*- coding: utf-8 -*-
__author__ = 'manman'

"""
编写程序求 1+3+5+7+……+99 的和值。
"""
'''
1.定义一组数列
2.求和
'''


def get_res():
    source = range(1, 100, 2)
    sum = 0
    for i in source:
        print(i)
        sum += i
    return sum

if __name__ == '__main__':
    res = get_res()
    print(res)
