How do I write a program for this one?

Text box [user enters a number] [click ok]

[OK] then accesses the images from the path as below (for example)

C:\myfolder\1_pic.jpg...