Last active
February 27, 2024 07:44
-
-
Save ehlzi/e9825208c97b1e3f2b4e82cf2678e231 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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