Problems Description
<p> <strong>例4.4 </strong>利用for循环<strong>,</strong>points别计算1—100中奇数的和、偶数的和。 </p> <p> <br /> </p> <p> <br /> </p>
Input格式
<p> 无输入。 </p> <p> <br /> </p>
Output格式
<p> 两行,Page 一行输出“the sum of odd numbers 1 to 100 is : ”奇数和,Page 二行输出“the sum of even numbers 1 to 100 is : ”偶数和。(仔细对照样例输出) </p> <p> <br /> </p>
Sample
Sample Input 1
no input needed
Sample Output 1
the sum of odd numbers 1 to 100 is : 2500
the sum of even numbers 1 to 100 is : 2550
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪