Cod sursa(job #782205)

Utilizator ana.zetg wea tw ana.z Data 26 august 2012 12:17:01
Problema Text Scor 30
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.35 kb
#include<stdio.h>
#include<string.h>
int s,poz,i,cuv,rrr=9999;
char c,cc;
int main()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while(scanf("%c",&c)!=EOF)
	{
	scanf("%c",&c);
	if((c>='A'&&c<='Z')||(c>='a'&&c<='z'))
	{
		s++; 
		poz=1;
	}
	else
	if(poz==1)
	{	
	cuv++; 
	poz=0;
	} 
	}
printf("%d",s/cuv);
return 0;
}