
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore fundamental flow control topics in C# through beginner-friendly coding exercises, with video clips explaining solutions and ongoing development guided by your feedback on topics and difficulty.
Implement a static check function using the modulo operator to determine even or odd, then print results like Odd for 3 and Even for 40 and 0.
Implement a function that takes a number and returns 'positive' when greater than zero, 'negative' when smaller than zero, and 'zero' when equal to zero.
Explain how to implement a static boolean check that takes three numbers and returns true if the sum of every two sizes is bigger than the third, allowing triangle dimensions.
Implement a static absolute method that returns the absolute value of a number by negating negative inputs and returning the value for non-negatives.
Learn to implement a C# function that returns 'even' or 'odd' for a number using the ternary operator and a modulo check, with example outputs.
Practice implementing a static factorial function in C# that returns the product of one to the given non-negative number, noting that zero and one yield one, using a loop.
Implement a do-while loop in C# to sum numbers from one to n, returning the total and demonstrating checks for 3, 4, 0, and 1 in Visual Studio.
Implement a factorial function in C# using a for loop, handling zero and one as one and multiplying the range from two to n to compute the result.
Use the debugger to step through factorial code, set breakpoints, inspect variables, and observe how the for loop initializes, evaluates conditions, and returns the result.
Find solutions for every coding exercise in this course, and request a video explanation for any solution if you need more clarity.
Take this course and improve your procedural programming skills in C#, and especially those in its control statements. Acquire the very basic understanding many tend to skip. Set the foundation for moving forward while having a solid base. Acquire practical experience through extensive practice. Catch up with the very basic C# capabilities in procedural programming, that you weren't familiar with. Take your C# programming skills to the next level. Polish your understanding by watching video clips that explain the solutions for selected coding exercises.
Learn and Master The Flow Control Statements in C#
Learn about the if and the if-else statements in C#
Learn how to create loops using the while statement
Learn how to create loops using the do..while statement
Learn how to create loops using the for statement
Learn how to use the switch statement
Take Your C# Programming Skills to The Next Level!
This course includes multiple coding exercises organized in separate sub-topics. This course includes solutions for all coding exercises. Selected coding exercises have video clips that explain their solutions. Make sure you already have a basic understanding of using the available flow control statements in C# before taking this course.
While completing the coding exercises this course includes, we will be more than happy to get your feedback and requests per those specific coding exercises for which you would like us to prepare video clips that explain them.
This course includes more than 10 coding exercises. When taking this course feel free to let us know in which sub-topic you would like to have more coding exercises and we will make a special effort to develop these exercises.