...

/

Example 82: Display a Calendar

Example 82: Display a Calendar

Learn how to display the calendar of a given month.

We'll cover the following...

Problem

Write a function that receives the month and year in integer form as input and prints the calendar in the following format:

Note: According to the Gregorian calendar, 01/01/01 was Monday. The calendar should be generated with this as the base.

Try it yourself

Try to solve this question on your own in the code widget below. If you get stuck, you can always refer to the solution provided.

Note: To run your solution or our given ...