CS 161 - Code Flow

3,267 views · Published 15 September 2015 · 4:39 · Indexed 12 November 2026

Channel: Oregon State University Ecampus · 2015 · Education

Watch on YouTube

DescriptionWalk through the execution of each line of code in a simple program which determines if a number is prime. The core goal of this video is to explain the concept of looping. 

We walk through the code 3 times to show the 3 possible outcomes based on which number you enter.

More from this channel