#include<stdio.h>
int main(){int n, sum=0;
printf("Please input n:"); scanf("%d",&n); if(n>=0) for(n=0;n<=2*n;++n) sum+=n;else for(n=0;n>=2*n;++(2*n)) sum+=n;printf("%d",sum);return 0;}这个程序哪里错了?