1826: 【例4.3】输出奇偶数之和

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

利用for循环,分别输出$1∼n$之间的所有奇数的和、偶数的和。

Input

输入$n$。

Output

输出为一行,两个数(用一个空格隔开),偶数之和与奇数之和。

Sample Input Copy

10

Sample Output Copy

30 25

Source/Category