#P151. 【例25.3】 输出奇偶数之和
【例25.3】 输出奇偶数之和
Description
Using a for loop, output the sum of all odd numbers and the sum of all even numbers between 1 and n, respectively.
Input Format
Input n (1≤n≤100).
Output Format
Output a single line containing two numbers (separated by a space): the sum of even numbers and the sum of odd numbers.
Sample
1030 25