C++ Tutorial #10 — Introduction to while / for loops

Topics Discussed: For / While loops, loop structure, using counter controlled loops. Source code available here. Loops In this video I discuss two or the most important constructs in the entire language of java. In the next lesson I talk a bit more about for loops, which seem to be used a little more than... » read more

Programming Challenge #1 — Primes

Code difficulty: 3/10 Math difficulty: 4/10 In this challenge I ask that you do the following things: Create a program that will: Allow a user to input a number Allow the user to see if the number is prime or not If the number is not prime, tell the user what number it is divisible... » read more

Programming Challenge #2 – Dual Primes

Code difficulty: 4/10 Math difficulty: 4/10 Before we begin here: Q. What is a dual prime? A. A dual prime is 2 prime numbers that are exactly “2” apart. Example: 3, 5 // 11,13, etc. In his challenge I ask that you do the following things: Create a program that will: Allow a user to... » read more