Cod sursa(job #2294655)

Utilizator carol800Dima Carol Valentin carol800 Data 2 decembrie 2018 17:33:56
Problema Text Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.4 kb
#include <bits/stdc++.h>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
int suma, n, m, s, ct, ok;
int main()
{
    char a;
    while(!fin.eof())
    {
        fin>>a;
        if (a[i]>='a'&&a[i]<='z')
        {
            s++;
            ok=1;
        }
        else if (ok==1)
        {
            ok=0;
            ct++;
        }
    }
    cout<<s/ct;
}