Skip to content

Instantly share code, notes, and snippets.

@ehlzi
Last active February 27, 2024 07:44
Show Gist options
  • Select an option

  • Save ehlzi/e9825208c97b1e3f2b4e82cf2678e231 to your computer and use it in GitHub Desktop.

Select an option

Save ehlzi/e9825208c97b1e3f2b4e82cf2678e231 to your computer and use it in GitHub Desktop.
Module Main();
// Array of days in each month
Declare Integer daysInMonth[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
Declare String monthNames[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
// Display days in each month
For index = 0 To 11 Do
Display monthNames[index] + " has " + daysInMonth[index] + " days.";
EndFor;
End Module;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment