提交时间:2019-09-21 15:15:48

运行 ID: 682

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