Lecture 5: April 12, 2023

Reading: zyBooks text, §4.1–4.5, 4.9
Assignments: Homework 1, due April 24


  1. Corrections and explanations
    1. Lecture 2, slide 6: correct value of (unsigned) −53
    2. Explain why scanf didn’t act as expected in scanf.c

  2. Loops
    1. for loops
    2. while loops
    3. do … while loops

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of April 12, 2023 at 8:51PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh