This program accepts one positive integer input and print all the factors of that number.
What I did here in my code is that in the for loop, there is a method called range. The first parameter contains the number that you want to start with while the second parameter contains the number of the end point. For example, the value of x is 30. So if you want to end up with 30 in the second parameter, you should insert there 31.
after that if the number before the endpoint is divisible, then the following number/s are the factors of your chosen number.