Read integer and print chars

I will be splitting line with '/' and read each character or int followed by char and need to print char.

Ex: w/s/2d//3s

If W, I have to type W.
for s need to type S.
for 2d, DD.
for 3s, SSS
What is your pseudo code?
Topic archived. No new replies allowed.