Input
Output
>> javac Main.java
>> java Main
Enter any number : 
All factors of 50 are : 
1 2 5 10 25 50