Kod:
#include <stdio.h>
#include <conio.h>
int main()
{
char c[1000],ch;
int i,count=0;
printf("Bir cumle giriniz: ");
gets(c);
printf("Aranan harf: ");
scanf("%c",&ch);
for(i=0;c[i]!='\0';++i)
{
if(ch==c[i]) ++count;
}
printf("%c harfinden %d kere kullanilmistir.", ch, count);
getch();
return 0;
}