+ 2

Who can solve this

Who can write a program that prompts the user to enter the year and the first day of the year, and displays the calendar table for the year on the console. for example, if the user entered the year 2018, and 6 for sunday, january 1, 2018, your program should display the calendar for each month?

13th Oct 2018, 4:00 PM
Christian Abiode
Christian Abiode - avatar
1 Respuesta
+ 1
why 6 means jan 1? you studied java but for web it's javascript , so you can go to study javascript first. the code you need is console.log(_content) you need some for loop to iterate through the dates and if statement to create new line "\n" for every 7 days.
14th Oct 2018, 8:52 AM
Gordon
Gordon - avatar