int main(){char c='c';char s[] = "abcdefg";int n=strlen(s);for(int i=0; i{ if(s[i] == c) printf("%d\n", i);}return 0;}