Problem5100--奇数偶数和

5100: 奇数偶数和

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 908  Solved: 326
[Submit] [Status] [Web Board] [Creator:]

Description

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





Input

无输入。



Output

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



Sample Input



Sample Output

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

Source/Category


[Submit] [Status]