there are hundreds of answers for your question in this forum
Added after 7 minutes:
I'm also new to micro controllers but I would like to tell you use some kind of simulation program for PIC
PIC simulator IDE was very easy solution for me https://www.oshonsoft.com/pic.html
I think you have at least basic knowledge about PIC and programming if not try following link