#include #include int main() { int a,b,c,max,val,pos; pos=0; do{ a=pos+5; b=0; val=1; FILE*f=fopen("num","r"); do{ c=getc(f)-48; if(b>=a-5&&bmax) max=val; pos++; }while(pos<995); printf("\n\t%i\n\n",max); system("pause"); return 0; }