79653606

Date: 2025-06-04 23:04:30
Score: 0.5
Natty:
Report link

You need to change:

if (i % 7 == 0) 
{
    System.out.print(calformat1 + "  ");
} 

to:

if (i % 7 == 6) {
    System.out.println();
}
System.out.print(calformat1 + "  ");

% 7 == 6 is true for i = 6, 13, 20, 27... This creates the row breaks at the right intervals for your desired layout.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pratik Mathur