#include<bits/stdc++.h> using namespace std; int main() { int i,n,s; s=0; cin>>n; for(i=1;i<=n;i+=2) { s=s+i; } cout<<s; return 0; } /************************************************************** Problem: 1003 User: LYY001 Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/