Cod sursa(job #896232)

Utilizator FlyingZRusu Florin Andrei FlyingZ Data 27 februarie 2013 14:30:48
Problema Text Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.44 kb
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
char s;
int i,j,n,p,k;
int main()
{
    ifstream f("data.in");
    n=0;
    while (f.get(s))
    {
    if ((s>='a' && s<='z') || (s>='A' && s<='Z'))
    {i++;
    n=1;
    }
    if (!((s>='a' && s<='z') || (s>='A' && s<='Z'))&&n==1)
    {
        j++;
        n=0;
    }

   }
   p=i/j;
    cout<<i/j<<endl<<i<<endl<<j<<endl;
    return 0;
}