# include <iostream.h>void main() { int n; if(n<=3) n=n+1; cout<<n<<endl; else int a=4; for(n=4;n<=20;n++) a=a+n-2; cout<<a<<endl;}
请帮忙看看这个程序的错误在什么地方,谢谢!
#include <iostream.h>void main(){ int n; if(n<=3) n=n+1; cout<<n<<endl; else{ int a=4; for(n=4;n<=20;n++) a=a+n-2; cout<<a<<endl; }}