SlideShare a Scribd company logo
Bhushan Mulmule
bhushan.mulmule@dotnetvideotutorial.com
www.dotnetvideotutorial.com
For video visit
www.dotnetvideotutorial.com
FlowControl
Selection
Statements
If / if – else / else if
switch - case
Loops
for
while
do while
for each
Jump Statements
goto
break
continue
Return
throw
Agenda
Selection Statements
 A selection statement causes the program control to be
transferred to a specific flow based upon whether a certain
condition is true or not.
 The following keywords are used in selection statements:
 if
 else
 switch
 case
 default
www.dotnetvideotutorial.com
If-else
 The if statement selects a statement for execution
based on the value of a Boolean expression.
 Executes if block if condition is true and else block if
condition is false
 else block is optional
www.dotnetvideotutorial.com
int no1, no2;
Console.Write("Enter Number1: ");
no1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Number2: ");
no2 = Convert.ToInt32(Console.ReadLine());
if (no1 > no2)
{
Console.WriteLine("no1 is greater than no2");
}
else
{
Console.WriteLine("no2 is greater than no1");
}
if - else
Optional
www.dotnetvideotutorial.com
Nested if-else
 if-else can be nested either inside other if or
else block
www.dotnetvideotutorial.com
Nested if
if (no1 > no2)
{
Console.WriteLine("no1 is greater than no2");
}
else
{
if(no1 < no2)
Console.WriteLine("no2 is greater than no1");
else
Console.WriteLine("no1 is equal to no2");
}
www.dotnetvideotutorial.com
else-if
 else –if can be use to avoid deep nesting in case
of multiple conditions
www.dotnetvideotutorial.com
else if
if (no1 > no2)
{
Console.WriteLine("no1 is greater than no2");
}
else if (no2 > no1)
{
Console.WriteLine("no2 is greater than no1");
}
else
{
Console.WriteLine("no1 is equal to no2");
}
www.dotnetvideotutorial.com
switch-case
 The switch statement is a control statement that
handles multiple selections and enumerations by
passing control to one of the case statements within
its body
www.dotnetvideotutorial.com
switch-case
int no1, no2, result = 0;
char op;
Console.Write("Enter Number1: ");
no1 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Number2: ");
no2 = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Operator (+,-,*,/): ");
op = Convert.ToChar(Console.ReadLine());
www.dotnetvideotutorial.com
switch (op)
{
case '+':
result = no1 + no2;
break;
case '-':
result = no1 - no2;
break;
case '*':
result = no1 * no2;
break;
case '/':
result = no1 / no2;
break;
default:
Console.WriteLine("Invalid Operator");
break;
}
Console.WriteLine("Result = " + result);
break is compulsory
default is optional
Swith-case fallthrough
 Swith-case fallthrough can be used to execute same
block for multiple cases.
 It can be achived using empty case block
www.dotnetvideotutorial.com
Console.Write("Enter Ratings (0 to 5): ");
int ratings = Convert.ToInt32(Console.ReadLine());
switch(ratings)
{
case 0:
case 1:
Console.WriteLine("Poor");
break;
case 2:
case 3:
Console.WriteLine("Average");
break;
case 4:
Console.WriteLine("Good");
break;
}
Only empty case allow
block without break
statement
Swith-case fallthrough
FlowControl
Selection
Statements
If / if – else / else if
switch - case
Loops
for
while
do while
for each
Jump Statements
goto
break
continue
Return
throw
Agenda
Loops
 Loop executes a block of code repeatedly until a
certain condition is met.
 C# provides four loops
 for
 while
 do. . .while
 foreach
www.dotnetvideotutorial.com
for
for (initializer; condition; iterator)
{
statement(s)
}
The initializer is the expression evaluated before the
first loop is executed
The condition is the expression checked
before each new iteration of the loop
The iterator is an expression evaluated after
each iteration
www.dotnetvideotutorial.com
for
for (int i = 0; i < 10; i++)
{
Console.WriteLine("Hello");
}
www.dotnetvideotutorial.com
while
int i = 0;
while(i < 10)
{
Console.WriteLine(i);
i++;
}
Initializer
Condition
Iterator
www.dotnetvideotutorial.com
do...while
int i = 0;
do
{
Console.WriteLine("Hello " + i);
i++;
} while (i < 10);
Initializer
Condition
Iterator
www.dotnetvideotutorial.com
foreach
int[] marks = { 50, 35, 65, 43, 65 };
foreach (int m in marks)
{
Console.WriteLine(m);
} 50 35 65 43 65
m
marks
www.dotnetvideotutorial.com
Nested Loop
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++)
{
Console.WriteLine("i={0} j={1}",i,j);
}
Console.WriteLine();
}
www.dotnetvideotutorial.com
FlowControl
Selection
Statements
If / if – else / else if
switch - case
Loops
for
while
do while
for each
Jump Statements
goto
break
continue
Return
throw
Agenda
Jump Statements
 Branching is performed using jump statements, which
cause an immediate transfer of the program control.
The following keywords are used in jump statements:
 break
 continue
 goto
 return
 throw
www.dotnetvideotutorial.com
goto
static void Main(string[] args)
{
label1:
Console.WriteLine("Do you like this tutorial?");
Console.Write("Enter Y or N: ");
char response = Convert.ToChar(Console.ReadLine());
if (response == 'N' || response == 'n')
goto label1;
Console.WriteLine("O Thanks!!!");
}
www.dotnetvideotutorial.com
break
for (int i = 0; i < 10; i++)
{
if (i == 6)
break;
Console.WriteLine("i = " + i);
}
www.dotnetvideotutorial.com
continue
for (int i = 0; i < 10; i++)
{
if (i == 6)
continue;
Console.WriteLine("i = " + i);
}
www.dotnetvideotutorial.com
Bhushan Mulmule
bhushan.mulmule@dotnetvideotutorial.com
www.dotnetvideotutorial.com

More Related Content

PPT
Methods in C#
Prasanna Kumar SM
 
PPTX
Array in c#
Prem Kumar Badri
 
PPTX
Control statements in java
Madishetty Prathibha
 
PDF
StringTokenizer in java
Muthukumaran Subramanian
 
PPTX
Components of .NET Framework
Roshith S Pai
 
PPTX
Common language runtime clr
SanSan149
 
PPTX
Structural testing
Slideshare
 
PPTX
C# lecture 2: Literals , Variables and Data Types in C#
Dr.Neeraj Kumar Pandey
 
Methods in C#
Prasanna Kumar SM
 
Array in c#
Prem Kumar Badri
 
Control statements in java
Madishetty Prathibha
 
StringTokenizer in java
Muthukumaran Subramanian
 
Components of .NET Framework
Roshith S Pai
 
Common language runtime clr
SanSan149
 
Structural testing
Slideshare
 
C# lecture 2: Literals , Variables and Data Types in C#
Dr.Neeraj Kumar Pandey
 

What's hot (20)

PPTX
Data Types, Variables, and Operators
Marwa Ali Eissa
 
PPTX
Conditional statement in c
Muthuganesh S
 
PPT
Introduction to Basic C programming 01
Wingston
 
PPTX
Error Detection & Recovery
Akhil Kaushik
 
PPTX
Java awt (abstract window toolkit)
Elizabeth alexander
 
PPTX
JAVA AWT
shanmuga rajan
 
PPTX
VB Function and procedure
pragya ratan
 
PDF
itft-Decision making and branching in java
Atul Sehdev
 
PDF
Java exception handling ppt
JavabynataraJ
 
PDF
Managing I/O in c++
Pranali Chaudhari
 
PPTX
Constructors in java
chauhankapil
 
PPTX
Looping statements in C
Jeya Lakshmi
 
PPTX
virtual function
VENNILAV6
 
PPTX
interface in c#
Deepti Pillai
 
PPS
String and string buffer
kamal kotecha
 
PPTX
Types of Compilers
Hemant Chetwani
 
PPTX
Python Flow Control
Kamal Acharya
 
PPTX
Conditionalstatement
RaginiJain21
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
C Programming: Control Structure
Sokngim Sa
 
Data Types, Variables, and Operators
Marwa Ali Eissa
 
Conditional statement in c
Muthuganesh S
 
Introduction to Basic C programming 01
Wingston
 
Error Detection & Recovery
Akhil Kaushik
 
Java awt (abstract window toolkit)
Elizabeth alexander
 
JAVA AWT
shanmuga rajan
 
VB Function and procedure
pragya ratan
 
itft-Decision making and branching in java
Atul Sehdev
 
Java exception handling ppt
JavabynataraJ
 
Managing I/O in c++
Pranali Chaudhari
 
Constructors in java
chauhankapil
 
Looping statements in C
Jeya Lakshmi
 
virtual function
VENNILAV6
 
interface in c#
Deepti Pillai
 
String and string buffer
kamal kotecha
 
Types of Compilers
Hemant Chetwani
 
Python Flow Control
Kamal Acharya
 
Conditionalstatement
RaginiJain21
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
C Programming: Control Structure
Sokngim Sa
 
Ad

Viewers also liked (12)

PPTX
C# looping basic
Hock Leng PUAH
 
PPTX
C# Loops
Hock Leng PUAH
 
PPTX
Do While and While Loop
Hock Leng PUAH
 
PPT
Flow & Error Control
tameemyousaf
 
PPTX
Selection Statements in C Programming
Kamal Acharya
 
PPTX
Flow control in computer
rud_d_rcks
 
PPT
Module15: Sliding Windows Protocol and Error Control
gondwe Ben
 
PPTX
While , For , Do-While Loop
Abhishek Choksi
 
PPT
Difference between Java and c#
Sagar Pednekar
 
PPTX
.NET and C# Introduction
Siraj Memon
 
PPSX
Flow Control
selvakumar_b1985
 
C# looping basic
Hock Leng PUAH
 
C# Loops
Hock Leng PUAH
 
Do While and While Loop
Hock Leng PUAH
 
Flow & Error Control
tameemyousaf
 
Selection Statements in C Programming
Kamal Acharya
 
Flow control in computer
rud_d_rcks
 
Module15: Sliding Windows Protocol and Error Control
gondwe Ben
 
While , For , Do-While Loop
Abhishek Choksi
 
Difference between Java and c#
Sagar Pednekar
 
.NET and C# Introduction
Siraj Memon
 
Flow Control
selvakumar_b1985
 
Ad

Similar to Flow Control (C#) (20)

PPTX
DECISION MAKING AND BRANCHING - C Programming
MSridhar18
 
PPTX
Programming Fundamentals in C++ structures
ayshasafdarwaada
 
PPTX
Constructs (Programming Methodology)
Jyoti Bhardwaj
 
PDF
Unit 2=Decision Control & Looping Statements.pdf
Dr. Ambedkar Institute of Technology, Bangalore 56
 
PPT
C++ chapter 4
SHRIRANG PINJARKAR
 
PPT
2. Control structures with for while and do while.ppt
ManojKhadilkar1
 
PPT
control-statements, control-statements, control statement
crrpavankumar
 
PDF
C sharp chap4
Mukesh Tekwani
 
PPTX
Loop control statements
Jaya Kumari
 
PDF
Control statements anil
Anil Dutt
 
PDF
Chapter 9 - Loops in C++
Deepak Singh
 
PDF
Control statements
Kanwalpreet Kaur
 
PPTX
BSc. III Unit iii VB.NET
Ujwala Junghare
 
PPTX
C language 2
Arafat Bin Reza
 
PPTX
Introduction& Overview-to-C++_programming.pptx
divyadhanwani67
 
PPTX
Introduction to C++ programming language
divyadhanwani67
 
PDF
OIT 116 LOOPS AND CONDITION STATEMENTS.pdf
Carlos701746
 
PDF
Loops and conditional statements
Saad Sheikh
 
PPTX
Java Control Statements
KadarkaraiSelvam
 
PPT
Control statements
CutyChhaya
 
DECISION MAKING AND BRANCHING - C Programming
MSridhar18
 
Programming Fundamentals in C++ structures
ayshasafdarwaada
 
Constructs (Programming Methodology)
Jyoti Bhardwaj
 
Unit 2=Decision Control & Looping Statements.pdf
Dr. Ambedkar Institute of Technology, Bangalore 56
 
C++ chapter 4
SHRIRANG PINJARKAR
 
2. Control structures with for while and do while.ppt
ManojKhadilkar1
 
control-statements, control-statements, control statement
crrpavankumar
 
C sharp chap4
Mukesh Tekwani
 
Loop control statements
Jaya Kumari
 
Control statements anil
Anil Dutt
 
Chapter 9 - Loops in C++
Deepak Singh
 
Control statements
Kanwalpreet Kaur
 
BSc. III Unit iii VB.NET
Ujwala Junghare
 
C language 2
Arafat Bin Reza
 
Introduction& Overview-to-C++_programming.pptx
divyadhanwani67
 
Introduction to C++ programming language
divyadhanwani67
 
OIT 116 LOOPS AND CONDITION STATEMENTS.pdf
Carlos701746
 
Loops and conditional statements
Saad Sheikh
 
Java Control Statements
KadarkaraiSelvam
 
Control statements
CutyChhaya
 

More from Bhushan Mulmule (16)

PDF
Implementing auto complete using JQuery
Bhushan Mulmule
 
PDF
Windows Forms For Beginners Part 5
Bhushan Mulmule
 
PDF
Windows Forms For Beginners Part - 4
Bhushan Mulmule
 
PDF
Windows Forms For Beginners Part - 3
Bhushan Mulmule
 
PDF
Windows Forms For Beginners Part - 2
Bhushan Mulmule
 
PDF
Windows Forms For Beginners Part - 1
Bhushan Mulmule
 
PDF
NInject - DI Container
Bhushan Mulmule
 
PDF
Dependency injection for beginners
Bhushan Mulmule
 
PPTX
Understanding Interfaces
Bhushan Mulmule
 
PPTX
Polymorphism
Bhushan Mulmule
 
PPTX
Inheritance
Bhushan Mulmule
 
PPTX
Classes and objects
Bhushan Mulmule
 
PPTX
Methods
Bhushan Mulmule
 
PPTX
Arrays, Structures And Enums
Bhushan Mulmule
 
PPTX
Getting started with C# Programming
Bhushan Mulmule
 
PPTX
Overview of .Net Framework 4.5
Bhushan Mulmule
 
Implementing auto complete using JQuery
Bhushan Mulmule
 
Windows Forms For Beginners Part 5
Bhushan Mulmule
 
Windows Forms For Beginners Part - 4
Bhushan Mulmule
 
Windows Forms For Beginners Part - 3
Bhushan Mulmule
 
Windows Forms For Beginners Part - 2
Bhushan Mulmule
 
Windows Forms For Beginners Part - 1
Bhushan Mulmule
 
NInject - DI Container
Bhushan Mulmule
 
Dependency injection for beginners
Bhushan Mulmule
 
Understanding Interfaces
Bhushan Mulmule
 
Polymorphism
Bhushan Mulmule
 
Inheritance
Bhushan Mulmule
 
Classes and objects
Bhushan Mulmule
 
Arrays, Structures And Enums
Bhushan Mulmule
 
Getting started with C# Programming
Bhushan Mulmule
 
Overview of .Net Framework 4.5
Bhushan Mulmule
 

Recently uploaded (20)

PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
The Future of Artificial Intelligence (AI)
Mukul
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Doc9.....................................
SofiaCollazos
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 

Flow Control (C#)

  • 3. FlowControl Selection Statements If / if – else / else if switch - case Loops for while do while for each Jump Statements goto break continue Return throw Agenda
  • 4. Selection Statements  A selection statement causes the program control to be transferred to a specific flow based upon whether a certain condition is true or not.  The following keywords are used in selection statements:  if  else  switch  case  default www.dotnetvideotutorial.com
  • 5. If-else  The if statement selects a statement for execution based on the value of a Boolean expression.  Executes if block if condition is true and else block if condition is false  else block is optional www.dotnetvideotutorial.com
  • 6. int no1, no2; Console.Write("Enter Number1: "); no1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter Number2: "); no2 = Convert.ToInt32(Console.ReadLine()); if (no1 > no2) { Console.WriteLine("no1 is greater than no2"); } else { Console.WriteLine("no2 is greater than no1"); } if - else Optional www.dotnetvideotutorial.com
  • 7. Nested if-else  if-else can be nested either inside other if or else block www.dotnetvideotutorial.com
  • 8. Nested if if (no1 > no2) { Console.WriteLine("no1 is greater than no2"); } else { if(no1 < no2) Console.WriteLine("no2 is greater than no1"); else Console.WriteLine("no1 is equal to no2"); } www.dotnetvideotutorial.com
  • 9. else-if  else –if can be use to avoid deep nesting in case of multiple conditions www.dotnetvideotutorial.com
  • 10. else if if (no1 > no2) { Console.WriteLine("no1 is greater than no2"); } else if (no2 > no1) { Console.WriteLine("no2 is greater than no1"); } else { Console.WriteLine("no1 is equal to no2"); } www.dotnetvideotutorial.com
  • 11. switch-case  The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body www.dotnetvideotutorial.com
  • 12. switch-case int no1, no2, result = 0; char op; Console.Write("Enter Number1: "); no1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter Number2: "); no2 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter Operator (+,-,*,/): "); op = Convert.ToChar(Console.ReadLine()); www.dotnetvideotutorial.com
  • 13. switch (op) { case '+': result = no1 + no2; break; case '-': result = no1 - no2; break; case '*': result = no1 * no2; break; case '/': result = no1 / no2; break; default: Console.WriteLine("Invalid Operator"); break; } Console.WriteLine("Result = " + result); break is compulsory default is optional
  • 14. Swith-case fallthrough  Swith-case fallthrough can be used to execute same block for multiple cases.  It can be achived using empty case block www.dotnetvideotutorial.com
  • 15. Console.Write("Enter Ratings (0 to 5): "); int ratings = Convert.ToInt32(Console.ReadLine()); switch(ratings) { case 0: case 1: Console.WriteLine("Poor"); break; case 2: case 3: Console.WriteLine("Average"); break; case 4: Console.WriteLine("Good"); break; } Only empty case allow block without break statement Swith-case fallthrough
  • 16. FlowControl Selection Statements If / if – else / else if switch - case Loops for while do while for each Jump Statements goto break continue Return throw Agenda
  • 17. Loops  Loop executes a block of code repeatedly until a certain condition is met.  C# provides four loops  for  while  do. . .while  foreach www.dotnetvideotutorial.com
  • 18. for for (initializer; condition; iterator) { statement(s) } The initializer is the expression evaluated before the first loop is executed The condition is the expression checked before each new iteration of the loop The iterator is an expression evaluated after each iteration www.dotnetvideotutorial.com
  • 19. for for (int i = 0; i < 10; i++) { Console.WriteLine("Hello"); } www.dotnetvideotutorial.com
  • 20. while int i = 0; while(i < 10) { Console.WriteLine(i); i++; } Initializer Condition Iterator www.dotnetvideotutorial.com
  • 21. do...while int i = 0; do { Console.WriteLine("Hello " + i); i++; } while (i < 10); Initializer Condition Iterator www.dotnetvideotutorial.com
  • 22. foreach int[] marks = { 50, 35, 65, 43, 65 }; foreach (int m in marks) { Console.WriteLine(m); } 50 35 65 43 65 m marks www.dotnetvideotutorial.com
  • 23. Nested Loop for (int i = 0; i < 3; i++) { for (int j = 0; j < 5; j++) { Console.WriteLine("i={0} j={1}",i,j); } Console.WriteLine(); } www.dotnetvideotutorial.com
  • 24. FlowControl Selection Statements If / if – else / else if switch - case Loops for while do while for each Jump Statements goto break continue Return throw Agenda
  • 25. Jump Statements  Branching is performed using jump statements, which cause an immediate transfer of the program control. The following keywords are used in jump statements:  break  continue  goto  return  throw www.dotnetvideotutorial.com
  • 26. goto static void Main(string[] args) { label1: Console.WriteLine("Do you like this tutorial?"); Console.Write("Enter Y or N: "); char response = Convert.ToChar(Console.ReadLine()); if (response == 'N' || response == 'n') goto label1; Console.WriteLine("O Thanks!!!"); } www.dotnetvideotutorial.com
  • 27. break for (int i = 0; i < 10; i++) { if (i == 6) break; Console.WriteLine("i = " + i); } www.dotnetvideotutorial.com
  • 28. continue for (int i = 0; i < 10; i++) { if (i == 6) continue; Console.WriteLine("i = " + i); } www.dotnetvideotutorial.com