Cod sursa(job #1046078)

Utilizator apopeid15Apopei Daniel apopeid15 Data 2 decembrie 2013 17:28:41
Problema Text Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.28 kb
#include<fstream>
using namespace std;
ifstream f("text.in");
ofstream g("text.out");
int nrcuv,l;
char x;
int main(){
	l=0;
	nrcuv=0;
	while(f.get(x))
	{if(((x>=65)&&(x<=90))||((x>=97)&&(x<=122)))
		l++;
	else
	nrcuv++;
	g<<l/nrcuv;
	f.close();
	g.close();
	return 0;
}