Here is your converted HTML text with desired changes:

Begin Your Journey with C

To initiate your learning in C, you require the following:

  • A text editor for crafting C code
  • A compiler like GCC to convert the C code into a machine-understandable language

There are various text editors and compilers to select from. For this tutorial, an IDE (Integrated Development Environment) will be used by us.

Setting up the C IDE

An IDE is a software suite that consolidates the basic tools needed to write and test the code. Popular IDEs include Code::Blocks, Eclipse, and Visual Studio which are all free to use and facilitate both the editing and debugging of C code.

Note: Although web-based IDEs can be used, they typically have more limitations compared to their desktop counterparts.

We recommend starting with Code::Blocks. The latest version can be downloaded from here.

Let's Start with C

Create your first C file by following the steps below:

  1. Open Codeblocks
  2. Go to File > New > Empty File
  3. Write the following C code and save the file as myfirstprogram.c:
#include <stdio.h>, int main() { printf("Welcome to Fynd Academy!"); return 0;}

The above code might seem incomprehensible for now, we'll break it down in later chapters. For now, concentrate on running the code.

Executing Your Code

After writing the code, it's time to run it. In Codeblocks, navigate to Build > Build and Run. Your result will look something like this:

Welcome to Fynd Academy!

Great job! You've just written and executed your first C program.

Your C Learning Journey with Fynd Academy

Learning C with Fynd Academy is facilitated by our "Practice it Yourself" tool. It concurrently illustrates the code and the outcome, simplifying every new part you learn:

#include <stdio.h>int main() { printf("Welcome to Fynd Academy!"); return 0;} Welcome to Fynd Academy!

Practice it Yourself ยป

Fynd Academy Pathfinder

Track your progress as you embark on your learning journey. Best of all, it's complimentary!

<p><strong>C Switch</strong></p> <p><strong>Switch Statement</strong></p> <p>Instead of employing a myriad of if..else statements, the switch statement can be utilized. The switch statement functions by selecting one among various code blocks for execution.</p> <p><strong>Syntax</strong></p> <pre> switch (expression) { case x: // code block break; case y: // code block break; default: // code block } </pre> <p>Operating Procedure:</p> <ul> <li>The switch expression is evaluated once.</li> <li>The expression's value is juxtaposed with the values of each case.</li> <li>If there is a match, the associated code block is executed.</li> <li>The break statement disassociates from the switch block, hence halting the execution.</li> <li>The default statement is optional, and specifies some code to run if there is no case match.</li> </ul> <p>For example, below we utilize the weekday number to identify the weekday name:</p> <pre> int weekdayNum = 4; switch (weekdayNum) { case 1: printf("Monday"); break; case 2: printf("Tuesday"); break; case 3: printf("Wednesday"); break; case 4: printf("Thursday"); break; case 5: printf("Friday"); break; case 6: printf("Saturday"); break; case 7: printf("Sunday"); break; } // Outputs "Thursday" (day 4) </pre> <p><strong>The break Keyword</strong></p> <p>Upon encountering a break keyword, C disengages from the switch block. This halts additional code execution and case verification within the block. When a match is found, and the task is complete, it's break time. No more testing is necessary. Saving execution time, a break "foregoes" the rest of the code in the switch block's execution.</p> <p><strong>The default Keyword</strong></p> <p>The default keyword identifies some code to run if there's no case match, as shown in the example below:</p> <pre> int weekdayNum = 4; switch (weekdayNum) { case 6: printf("Today is Saturday"); break; case 7: printf("Today is Sunday"); break; default: printf("Looking forward to the Weekend"); } // Outputs "Looking forward to the Weekend" </pre> <p>Note: The default keyword should be used as the last statement in the switch and it does not demand a break.</p> <p><strong>C Exercises</strong></p> <p>Test Yourself With Exercises:</p> <p>Exercise: Insert the missing parts to complete the following switch statement:</p> <pre> int weekdayNum = 2; switch () { 1: printf("Monday"); ; 2: printf("Sunday"); ; } </pre>