#include
int main(void)
{
int i,j,k;
char st;
printf(\"enter string\\n\");
scanf(\"%s\", st);
char st is a character i.e it will store only one character try it like this
main()
char st [100];
scanf("%s",st);
just change these three lines and it will work it will except only single word strings
here you have declared the function as an int that is int main() keep it as main() and it will work