Problems
Write a program that receives a string (up to 100 characters) as input, then repeatedly receives an integer and removes the character at that position, printing the result each time, until only one character remains.
The position of the first character is 1. If the input number is greater than or equal to the length of the string, remove the last character.
Example
word
3
1
10
wod
od
o
The execution window is shown as below, where blue text is input and black text is output.
word
3
wod
1
od
10
o
Source
자기주도C언어프로그래밍