Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
310 B
2
Indexable
Never
public class MyClass {
    public static void main(String args[]) {
      int value = Integer.parseInt(args[0]);
      
      for(int i = 1; i < value; i++) {
          if(value % i == 0)
            {
                System.out.println(i);
            }
      }
      
      System.out.println(value);
    }
}