#include <stdio.h>
int main() {
char string[100],result;//string is always stored in an array
int index,stridx;
scanf("%s",string);
scanf("%d",&stridx);
result=string[stridx];
printf("%c",result);
}
To embed this program on your website, copy the following code and paste it into your website's HTML: