提交时间:2019-09-22 13:57:09
运行 ID: 807
#include<iostream> int main(){ int i=1,sum=0,n; scanf("%d",&n); while(i<=n){ sum=sum+i; i=i+2; } printf("%d",sum); return 0; }