i am having trouble with this c language code:
char st[2]; printf(\"enter first value:\"); scanf(\"%c\", &st[0]); printf(\"enter second value:\");
Change
scanf("%c", &st[0]);
to this
scanf(" %c", &st[0]);
That's a shotty answer (no error checking or anything) but its quick and easy.