i have a function java where i need print multiples of 2 numbers 3 and 5 i do this function. but it dont very clean
for(int i = 1; i <= 100; i++){
if (i % 3 == 0 && i % 5 == 0) {
System.out.println("im multiple of 3 and 5");
}
else if (i % 3 == 0) {
System.out.println("im multiple of 3");
}
else if (i % 5 == 0) {
System.out.println("im multiple of 5");
}
else{
System.out.println(" i dont multiple");
}
}
how should i to do for a code more clear