Cod sursa(job #884820)
| Utilizator | Data | 21 februarie 2013 12:57:52 | |
|---|---|---|---|
| Problema | Text | Scor | 20 |
| Compilator | c | Status | done |
| Runda | Arhiva de probleme | Marime | 0.33 kb |
#include<stdio.h>
char ch;
int i,j,nrl,nrc;
int main(void)
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while((ch=getchar())!=EOF)
{
if((ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z'))
nrl++;
else
nrc++;
}
printf("%i",nrl/nrc);
return 0;
}
