Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Display.main(afisare.java:7)
class Display { public static void main(String args[ ] ) { int nr=Integer.parseInt(args[0]); int i; for (i=1; i<=nr; i++) if (nr%i==0) System.out.println(i); }// main }// class
public static void main(String args[ ] )
public static void main(String[] args)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)