Cod sursa(job #1792464)

Utilizator KretorsCocinda Alex Kretors Data 30 octombrie 2016 14:52:50
Problema Text Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.35 kb
#include <iostream>
#include<fstream>

using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");

int main()
{
    char x;
    int lit=0,cuv=0;
    while(fin.get(x)){
        if ((x>='a'&&x<='z')||(x>='A'&&x<='Z'))
            lit++;
        if (x<='a'&&x>='Z')
            cuv++;
    }
    fout<<lit/cuv;
    return 0;
}