Anonymous user
Calendar: Difference between revisions
Edit task: Allow output in 132 columns. (The task allowed such output before 12 June 2011.) Remove reference to IBM 1403; the CALENDAR task only requires uppercase code, not uppercase output.
(→{{header|Ruby}}: Use `tput co` to avoid escape sequences from curses. Copy the output in 132 columns and describe the output in 80 columns.) |
(Edit task: Allow output in 132 columns. (The task allowed such output before 12 June 2011.) Remove reference to IBM 1403; the CALENDAR task only requires uppercase code, not uppercase output.) |
||
Line 1:
{{task|Date and time}}
Create a routine that will generate
* A line printer with a width of 132 characters.
(Ideally, the program will generate well
Kudos (κῦδος) for routines that also correctly transition from Julian to Gregorian calendar in September 1752.
Line 11 ⟶ 12:
THE REAL PROGRAMMER'S NATURAL HABITAT
"Taped to the wall is a line-printer Snoopy calender for the year 1969."
For further Kudos see task [[Calendar - for "real" programmers|CALENDAR]],
For economy of size, do not actually include Snoopy generation in either the code or the output, instead just output a place-holder.
=={{header|ALGOL 68}}==
{{works with|ALGOL 68|Revision 1 - no extensions to language used}}
Line 401 ⟶ 403:
=={{header|PicoLisp}}==
▲This "calendar" is nicely formated, and fits into 20 columns ;-)
<lang PicoLisp>(de cal (Year)
(prinl "====== " Year " ======")
|