From the course: Debugging in C#
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Basic code challenge
(upbeat electronic music) - [Instructor] Throughout this course, we've explored different tools that help us debug programs, as well as how to approach finding and solving code errors. For this code challenge, we have a program that attempts to print the numbers one to 100 with a few constraints. For multiples of three, the program prints Fizz instead of the number, and for multiples of five, it prints Buzz. For numbers which are multiples of both three and five, it prints FizzBuzz. Let's take a deeper look at this program. In the main function, all we do is call the FizzBuzz function. And in the FizzBuzz function, we have all of the implementation that does what the program is supposed to do. Of course, right now, the code doesn't work and it's your job to fix it. Good luck and happy coding!
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.