Skip to main content
Tag

programming logic

All blogs tagged with programming logic

3
Articles
11,379
Total Views

Showing 3 of 3 articles

09
Dec
2023
If Else Statement
3,542 views

In C# if-else statement also tests the condition. It executes the if block if the condition is true otherwise else block, is executed. the else statement to specify a block of code to be executed if the condition is False. the if-else statement checks a Boolean expression and executes the code based on if the expression is true or false. The if part of the code executes when the value of the expression is true. The else part of the code is executed when the value of the expression is false.

23
Sep
2023
Mastering Unconditional Statements in C: A Complete Guide with Examples
4,255 views

A control structure in C called a switch statement is used to make decisions based on the value of a variable or expression. It enables you to run a block of code connected to the first matching case after testing a variable against a set of values (cases). The switch statement's fundamental grammar is as follows:

Translate Page