However, your while loop will loop infinitely until you attempt to decrement past the largest possible negative value of an int. Is that what you intended?
how do i become a more advance programmer
The same way you become more advanced at anything:
1) Practice
2) Read books and tutorials that teach you more
3) Practice
4) Seek advice from experts in the field
5) Practice