I want to check whether a certain character is in a string or not
but my code is not working
Code:#include<stdio.h> #include<string.h> int main() { char ch[200]; char c; int n,i; puts("Enter string"); scanf("%s",ch); puts("ENTER Character"); scanf("%c",&c); for(i=0;ch[i]!='\0';i++) { if(ch[i]==c); puts("found"); } return 0; }