Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

【基础题】奇数偶数和

📝 Solutions 🔵 仅限 C++
Problems Description
<p> <strong>例4.4 &nbsp;&nbsp; </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 &nbsp;odd &nbsp;numbers &nbsp;1 to 100 is : ”奇数和,Page 二行输出“the sum of &nbsp;even &nbsp;numbers &nbsp;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
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token