2951: 循环入门-统计 1 到 n 中的偶数个数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:17
Solved:13
Description
输入一个正整数 n,使用循环统计 1 到 n 中偶数的个数并输出。
Input
一行,一个正整数 n
Output
一行,偶数的个数
Sample Input Copy
10
Sample Output Copy
5
HINT
1≤n≤1000