急求很简单程序问题

来源:百度知道 编辑:UC知道 时间:2024/06/14 07:25:41
#include "stdio.h"
#include "conio.h"
main()
{int i=2;
int s;
for(i=2;i++;i<=5)s = s+i;
printf("s is %d",s) ;
getch();
}
结果为啥不对

#include "stdio.h"
#include "conio.h"
main()
{int i=2;
int s;
for(i=2;i<=5;i++)s = s+i;
printf("s is %d",s) ;
getch();
}
...

看看是哪行出的问题,
conio.h 有这么头文件么。。