Hi all im trying to convert 24 if statements into 2 for loops, This is what they look like:
However they do nothing for some reason, and no output is printed for them.... Anyone hint what im doing wrong please?
Code:
for(int counter=monthBirth;counter<monthBirth;counter++){
monthBirth++;
monthTotal = monthTotal+daysInMonth[monthBirth];
}
for(int counter=month;counter<month;counter++){
System.out.println(counter);
month++;
monthTotalFinal = monthTotalFinal+daysInMonth[month];
}
However they do nothing for some reason, and no output is printed for them.... Anyone hint what im doing wrong please?