Pagini recente » Monitorul de evaluare | Diferente pentru problema/matrice intre reviziile 16 si 15 | Cod sursa (job #2085249) | Buline | Cod sursa (job #326103)
Cod sursa(job #326103)
#include <stdio.h>
int cuv,lg,i,beg,end;
char c;
int main()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while(scanf("%c",&c)!=EOF)
{
if((c>='a' && c<='z') || (c>='A' && c<='Z'))
{
while((c>='a' && c<='z') || (c>='A' && c<='Z'))
{
scanf("%c",&c);
lg++;
}
cuv++;
}
}
printf("%d",lg/cuv);
return 0;
}