Loops Control Statements

It is a short article on the control statements that can be used with loops. Basically there are two keywords that can be used with loops for special behavior.

Loops Control Statements

Loop Types and their Usage

As you know the code within braces is known as block of code and there will be times when you want your block of code to be repeated multiple time. In general the code executes only once and sequentially so if you want it execute multiple times then either you have to write it multiple times or use the idea of Loops.

Loop Types and their Usage

Operator and Expressions

In your programming you are going to need or build expressions which will help you in your calculation. For example you calculate average of some number, for that purpose you are going to build expression. Expressions are built with operators and operands. Operators are symbols or functions that tells compiler to perform specific mathematical or logical operations and operands are something on which operators work.

Operator and Expressions

Decision Making: Switch Statements and tertiary Operator

Switch statements are another way of handling decision making in your program. Switch statements work just like if-else statements. The reason when they are used is when you have a bunch of if else if statements and it becomes difficult to read then you it change your code to use Switch statements.

Decision Making: Switch Statements and tertiary Operator

Descision making: if else statements

Conditions are something that is inescapable. Whenever you create a program, you are very likely to make decisions in it or let your users make some decisions.

Descision making: if else statements

Constants, Literals and Enumerations in C#

In this tutorial we are going to understand the importance of constants, literals and enums. Const and enums are C# constructs which are used to make code more readable and easy to maintain...Continue reading

Constants, Literals and Enumerations in C#

Data Types: Type conversion

C# is a strongly typed language which means you have to give a data type when you declare a variable. But there might occur a situation where you want to share data between different type of variables for this purpose you use type casting...Continue reading

Data Types: Type conversion

Data Types: Character and String

Character and especially strings are data types that will be used most of the time in your program so it is important to have good knowledge about them. In today's post we will discuss these both Data types...Continue reading

Data Types: Character and String

Data types: Numbers and Double vs Decimal

You should have good knowledge about variables because you don't want to slow your program or use unnecessary memory or get into problem that variable is not holding a value especially when working with numbers....Continue reading

Data types: Numbers and Double vs Decimal

Console Output/Input and String formatting in C#

We have discussed the basic structure of C# in our previous post so now we can move towards exploring the fundamentals of language. One important thing that you need to know that how you output data to console window or take input from user. Note that console is a black window that appears when you run your application...Continue reading

Console Output/Input and String formatting in C#

«12