Quote:
Find multiples of each number in array using java
Never use postincrement on variables that control the loops. Unless you know exactly what you do.
for(int i=0; i<n; i++)
{
for(int j=0; j<n; j++)
{
if(arr[j++]%arr[i++]==0)
{
System.out.println("Multiples of"+arr[i++]+"is:"+arr[j++]);
break;
}
else
{
System.out.println("No multiples");
break;
}
}
}
Other errors too.
Edit:
As for the errors, run your code and look at the results you should understand rather quickly what is wrong.
Hint: you should not test a value against itself.