Cod sursa(job #884818)
Utilizator | Data | 21 februarie 2013 12:57:18 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 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);
}