Save this video free

4.1 - Loops (2026-09-09)

Chris Bourke · 51:58 · Watch on YouTube

Part of University of Nebraska-Lincoln CSCE 155E. See all 14 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Chris Bourke introduces C-style for and while loops, explaining initialization, continuation conditions, updates, and loop bodies through runnable counting examples. He compares loop syntax and scope, demonstrates increment and compound-assignment operators, and gives practical guidance for choosing a loop and avoiding infinite loops.

Key takeaways

Chapters

0:00 Course Notices and the Start of the Loops Unit
4:39 The Four Elements Shared by Every Loop
6:52 A C for Loop Counts from 1 Through 10
11:06 Python Tutor, Increment Operators, and Compound Assignment
20:30 For-Loop Variable Scope and Counting Patterns
25:18 Changing Loop Bounds, Steps, and Counting Direction
32:05 Consistent C Formatting and Accumulating a Loop Total
37:06 Translating a for Loop into a while Loop
44:32 Choosing for or while for Known and Input-Dependent Repetition
49:19 The Next Loop Challenge: Count Digits in an Integer

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:02 [music] [music] Heat. Heat. [music] [music] Heat. Heat. Heat. [music] Yeah. Heat. [music] [music] [music] Heat. Heat.

0:52 [music] Heat. Heat. [music] [music] Yeah. Heat. [music] [music] >> [music] [music] >> Heat. [music] Heat. [music]

1:46 Round round about [music] again. So, you are the only one in what I say. [music] [music] Yeah. Heat. [music] [music] [music] Heat. Heat. Heat. [music] The rain [music] always starts with go

2:38 way. [music] Okay. So, before we start, I wanted to bring to your attention this week's bits and bites. Uh remember that there's an involvement fair today uh from 4:00 to 6:00 in the main union uh in the main city union. Uh and that's uh for computing organizations only. So, it's kind of like the ones that happened a

3:26 week or two ago. Uh but it's only for computing. Uh also, uh there are a couple of opportunities here coming up for career uh development. uh SESAB is holding a resume night as and then there's also a career fair 101. That's not the actual career fair. Their career fair is later I think in October. Uh but uh it'll of course it'll be posted here. Uh but you know it's it's a good practice to go there and find out what you should be doing to prepare for it. Uh what you should bring to it, your resume, a generic cover letter, things like that. Uh, and it's never too early to start doing that process even though you're in your first few weeks of a CS1 course. Uh, first of all, you can still get an internship uh during your freshman year or the summer after your freshman year. Uh, but also, even if you

4:15 don't intend to get an internship, it's a good pra idea to go and get some

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Chris Bourke.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.