这段代码哪里出错了?程序报错

#include<stdio.h> main() { int i; float s; s=0; for(i=1,i<101,i++) { if(i%2==o) s=s-1.0/i; else s=s+1.0/i; } printf("\n\ts=%f\n",s); system("pause"); }用的DEV C++
for(i=1,i<101,i++)提示这一行错误
错误信息
syntax error before string constant
[Warning] data definition has no type or storage class