提交时间:2019-09-22 11:01:34

运行 ID: 796

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