Cod sursa(job #329239)
| Utilizator | Data | 5 iulie 2009 14:21:19 | |
|---|---|---|---|
| Problema | Text | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.59 kb |
#include<iostream.h>
#include<stdio.h>
unsigned long int litere,cuv,rez;
char ch;
int main()
{
freopen("text.in","r",stdin);freopen("text.out","w",stdout);
while(scanf("%c",&ch)!=EOF)
if((ch>='a' && ch<='z') || (ch>='A' && ch<='Z'))
{cuv++;
do {litere++;scanf("%c",&ch);}
while((ch>='a' && ch<='z') || (ch>='A' && ch<='Z'));
}
fclose(stdin);fclose(stdout);
return 0;
}
