提交时间:2019-10-26 21:00:37

运行 ID: 1885

#include<iostream> int main() { int a,b,c=0; scanf("%d",&a); for(b=1;b<=a;b=b+2) { c=c+b; } printf("%d",c); return 0; }