Azra
Bronze Üye
-
- Katılım
- 11 Mart 2014
-
- Mesajlar
- 3.834
-
- Tepkime puanı
- 13
-
- ForumSAL Yaşı:
- 12 yıl 7 ay
- Kıdem:
- Forumun Eskisi
-
- Yaş
- 35
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;
}