Sunday , December 15 2019

Tag Archives: conditionals

C# – More on arrays, loops and conditionals (Part 2)

  This is the 2nd part of: More about arrays, loops and conditionals (Part 1) Part 2: Code for 3 x 3 matrix application: Put this below static void main() int[,] matrix = new int[3, 3] { {1,3,5}, {6,7,8}, {9,6,3} }; for (int i = 0; i < matrix.GetLength(0); i++) { for …

Read More »

C# – More on arrays, loops and conditionals (Part 1)

In this video we will revise what we have learned in our past videos. Making variables Taking inputs Loops Arrays Conditionals and switch cases We will use these to achieve 2 tasks: Calculator 3 x 3 matrix using 2D arrays. I have broken the video in 2 parts to not …

Read More »

C# – Conditionals ( if-else, else-if and switch cases)

In this lesson, we will learn about using if-else, else-if and switch cases. We will learn who to make logics that if something happens, do that…other wise do something else.    

Read More »

JAVA #12 – If,else-if,else and Ternary Operators in Java

The if-then and if-then-else Statements The if-then Statement The if-then statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code only if a particular test evaluates to true. Syntax of if-else and if-else statement: if (condition) { statements …

Read More »

JAVA #11 – Conditional Statements and Switch Cases

Conditional Statements in Java A conditional statement is an expression that produces a true or false result. You can use that result as you see fit. To create the expression, you use the Boolean operators we studied in the previous lesson. In the previous lesson, we saw only how to …

Read More »