skillrack
Company
Programming
#include
#include
int main()
{
char str[100],ch,ctr=0;
int index=0;
scanf("%sn%c",str,&ch);
while(str[index])
{
if(str[index++]==ch)
{
ctr=ctr+1;
}
}
// index++;
printf("%d",ctr);
}
Read Solution (Total 0)
skillrack Other Question