Lecture 5: October 4, 2019

Reading: C text, §2.4
Due: Homework #1, due October 9, 2019


  1. Greetings and felicitations!
  2. change-loop.c
    1. while loop
    2. scanf handling invalid inputs (string for “%d”)
    3. Handling EOF
  3. change-loop2.c
    1. Handling negative inputs
    2. Boolean operators &&, ||, >}

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: [email protected]
ECS 36A, Programming and Problem Solving
Version of October 12, 2019 at 10:43AM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh