Displaying a month

  • Display the name of the month (it need not be centered)
  • Print enough blanks for the days being skipped to get to the first day of the month
  • For each day of the month (1 to number of days)
    • print the day (NOT println)
    • add on to the day of the week
    • if Saturday was printed, print a new line

Help with proportional spacing


This topic: CenterForComputing > WebHome > Syllabi > CSC121SylS2023 > CSC121S2023Lab06 > CSC121S2023Lab6H4
Topic revision: r2 - 2023-02-06 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback