#include<stdio.h> int main() { int i,n,sum=0;; printf("n="); scanf("%d",&n); for(i=1;i<n;i=i+2) sum+=i; printf("sum=%d\n",sum); return 0; }