From the course: Level Up: C++
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Fizz Buzz
(video game music) - [Instructor] In challenge number three, you'll practice your basic programming skills to implement the somewhat popular game of Fizz Buzz. For this challenge, you must write a terminal application that plays Fizz Buzz. Here's how it works. The user enters a positive integer, n. Then your program prints a sequence of integers from one to n replacing multiples of three by Fizz, multiples of five by Buzz, and multiples of three and five by Fizz Buzz. Remember that you may write the whole application or use the startup code provided in the Challenge folder which contains a functional application where you can fill in the blanks. Pause the video at this point, write your solution, and resume the video when you are ready to see how I solved it. (video game music) Let me use the startup code I provided. My solution runs in the main function and it's very simple. First, in line 14, let me declare two…
Contents
-
-
-
(Locked)
Checking for palindromes3m 55s
-
(Locked)
Sorting an array4m 36s
-
(Locked)
Fizz Buzz2m 40s
-
(Locked)
Checking for bitonic sequences8m 39s
-
(Locked)
Recursive factorial sequence generator3m 15s
-
(Locked)
Horseplay7m 11s
-
(Locked)
Creating a class8m 56s
-
(Locked)
IP address validation7m 6s
-
(Locked)
Fixing faulty code9m 41s
-
(Locked)
Playing Tic-Tac-Toe10m 53s
-
(Locked)
Finding relatives3m 35s
-
(Locked)
Age in days calculator5m 42s
-
(Locked)
Conway's Game of Life9m 36s
-
(Locked)
The Reflex Game5m 35s
-
(Locked)
JSON file validation6m 43s
-
(Locked)
The birthday problem6m 27s
-
(Locked)