Skip to main content

Posts

Showing posts with the label CASE

Switch-Case in C Program #DOTC_Mdb

Switch-Case in C Program. Hi Everyone, Today we will discuss about Switch – Case statement in C Program.   Before going through Switch – Case program please go through my previous blogs for your reference and it will easy for you to write programs by using Switch- Case. https://dheeraj60.blogspot.com/2020/06/continue-and-break-statement-statement.html https://dheeraj60.blogspot.com/2020/06/while-and-do-while-loop-lop-in-c.html https://dheeraj60.blogspot.com/2020/06/nested-for-loop-with-simple-pattern.html Let’s Start with Switch case: Switch case is similar to conditional statements where we can give multiple conditions in one statement. In other word switch case statement is used when we have multiple options and we need to perform a different work for all option. Although we can do same thing with IF ELSE which we discussed in previous blog but in switch case we can pass multiple option at one time. Syntax for Switch –case is as below :   switch (expression) ​{ ...

Benefit of Conditional and Decision Making Statements in PL/SQL Block #DOTC_Mdb

Conditional and   Decision Making Statements in PL/SQL.   Today, we will discuss conditions in PL/SQL block which can be used in Procedures, Functions etc. PL/SQL condition is vastly used in sub-programs were programmer can specify one or more condition evaluated by the program , along with a statement or statements to be executed if the condition is determined to be true it will execute that statement   optionally we have option to execute   other statements if condition   false. In other word we can say Decision Making is just like condition based where if it satisfy the condition it will give the result else we can execute other statement in a program. Condition in PL/SQL is similar to other programming language like C++, Java etc.    Types of Decision Making Statements in PL/SQL: IF-THEN IF-THEN-ELSE IF-THEN-ELSIF NESTED-IF CASE   IF –THEN   -- The IF-THEN statement is mainly used to execute a particular section of codes only ...