Labels

Friday, September 26, 2014

Types of C# Statements

There are three types of statements that can be written in a c# application.

Types of statements


1.Sequential statements : that statement will run when comes its turn in the sequence of execution under no condition and it will run one time only.example on the sequential statement is the statement that we wrote in the example 'Create your first C# Application'   which appear in the picture below: 



 2.Conditional Statements (Control Statements): that type of statements will run under one or more conditions that given by us ,so that statements may not run if our condition doesn't pass thetest .
There is two types of Conditional Statements 'if Statement'  and 'switch Statement' and those will be discussed later in details.

3 .Loop Statements (Iteration Statements):loop statements is the statements that executes more than one time according to specific number of loops or under one or more condition.
C# has four types of loop statements as follow ('for Statement,foreach Statement,while Statement,do while statement') ,all these statements will be discussed in details .    

No comments:

Post a Comment