#include<iostream>
#include<string.h>
int main()
{
char metin[50];
scanf("%[^\n]c", &metin);
int x=0, d=0, y=0,k=0;
y=strlen(metin);
while(x<y)
{
if(metin[x]=='a') d++;
else if(metin[x]=='A') k++;
x++;
}
printf("Metinde bulunan a sayisi:%d\nMetinde bulunan A sayisi:%d",d,k);
return 0;
}
0 yorum :
Yorum Gönder