#37. 【基础题】奇数偶数和

    ID: 37 problem_type.undefined ms MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>语言基础-循环结构简单循环数学运算条件判断输出格式

【基础题】奇数偶数和

Cannot parse: Cannot read properties of null (reading 'length')

【基础题】奇数偶数和

题目描述

例4.4    利用for循环分别计算1—100中奇数的和、偶数的和。



输入说明

无输入。


输出说明

两行,第一行输出“the sum of  odd  numbers  1 to 100 is : ”奇数和,第二行输出“the sum of  even  numbers  1 to 100 is : ”偶数和。(仔细对照样例输出)


样例

输入

no input needed

输出

the sum of  odd  numbers  1 to 100 is : 2500
the sum of  even  numbers  1 to 100 is : 2550