Pagini recente » Cod sursa (job #640768) | Cod sursa (job #2393746) | Cod sursa (job #1693774) | Cod sursa (job #1713844) | Cod sursa (job #74370)
Cod sursa(job #74370)
#include<stdio.h>
#include<string.h>
#include<ctype.h>
char c; int nr=0,k=0;
void rezolvare(){
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
c=getc(stdin);
while(!isalpha(c)&&!feof(stdin))
c=getc(stdin);
while(!feof(stdin)){
if(isalpha(c))
k++;
if(!isalpha(c))
nr++;
c=getc(stdin);
}
printf("%d",k/nr);
fclose(stdout);
}
int main(){
rezolvare();
return 0;
}