Cod sursa(job #93284)
Utilizator | Data | 18 octombrie 2007 11:55:55 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <stdio.h>
FILE *in = fopen("text.in","r"), *out = fopen("text.out","w");
char n;
long sus,jos;
int main()
{while ( fscanf(in, "%c", &n) == 1 )
{if((n>='a' && n<='z')||(n>='A' && n<='Z')) sus++;
else
if(n==' ') jos++;
}
return 0;
}