Hello,
I am having a problem with %. I am trying to find all the years from 1628 to 2005 that are divisible by 15, so I did this:
if((year % 15 == 0) || (year % 100 == 0) || (year == 2005)){ System.out.println("Print something");
}
So the way i am thinking of this is that year will be divided by 15 and if it is divided evenly then it would have a remainder of 0. So is there something wrong with the way I am using the % or is it something else that I am not seeing.
TY