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

The average weight of 8 boxers is increased by 1.5kg. When the boxer whose weight is 65kg is replaced by a new boxer, what is the weight of new boxer?