Code:
{
        N=-1;
        t=getchar();
        while(t!=EOF)
{
        v=getchar();
        if((t==' ' && v==' ') || (t==' ' && v=='#'))
        ;
        if(t=='#' && (v>='1' && v<='10'))
        N += 1;
        if((t>='1' && t<='10') && v==' ')
        N += 1;
        if(t==' ' && (v>='A' && v<='Z'))
        bok[N][27][v-'A'] +=1;
        if((t>='A' && t<='Z') && (v>='A' && v<='Z'))
        bok[N][t-'A'][v-'A'] +=1;
        if((t>='A' && t<='Z') && v==' ')
        bok[N][t-'A'][27] +=1;
        t=v;
}

Last edited by shabbir; 16Apr2008 at 11:36.. Reason: Code block