User talk:Dmclapp: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 20:
Because, at the top of the for loop you do January; at the bottom you test (leap=1 and i==2) which is false at this point; back to the top does February but only with 28 days; at bottom you test again (leap=1 and i==2) which is true so the monsize is set to 29; back to the top does March with 29 days only.
User:Catskill549 09:15, 15 October 2013
 
Apparently I missed one change when I edited in the corrections. I changed
"if (leap == 1 && i == 2) monsize = 29"
to "if (leap == 1 && monsize == 28) monsize = 29"
Try that. Sorry about the confusion.
--[[User:Dmclapp|Dmclapp]] ([[User talk:Dmclapp|talk]]) 19:03, 15 October 2013 (UTC)
Anonymous user