Cümledeki kelime sayısını bulur
int i,kelimesay=0; char cumle[50]; printf("Bir cumle giriniz\n"); gets(cumle); for(i=0;i<=strlen(cumle);i++) { if(cumle[i]==' ') kelimesay++; } printf("Kelime sayisi %d dir",kelimesay+1);