#include #include /* void swap(char *a, char *b) { char tmp; strcpy(tmp, *a); strcpy(*a, *b); strcpy(*b, tmp); } */ int main(void) { int i, a, b; char str[10]; char tmp; int length; length = sizeof(str) / sizeof(str[0]); scanf("%s", str); scanf("%d", &a); scanf("%d", &b); tmp = str[a]; str[a] = str[b]; str[b] = tmp; printf("%s", str); return 0; }