SlideShare une entreprise Scribd logo
1  sur  29
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

Contenu connexe

Tendances

Constructor and Destructor
Constructor and DestructorConstructor and Destructor
Constructor and Destructor
Kamal Acharya
 
Component object model and
Component object model andComponent object model and
Component object model and
Saransh Garg
 
Looping statement
Looping statementLooping statement
Looping statement
ilakkiya
 
compiler ppt on symbol table
 compiler ppt on symbol table compiler ppt on symbol table
compiler ppt on symbol table
nadarmispapaulraj
 

Tendances (20)

7.data types in c#
7.data types in c#7.data types in c#
7.data types in c#
 
While , For , Do-While Loop
While , For , Do-While LoopWhile , For , Do-While Loop
While , For , Do-While Loop
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
Constructors and Destructors
Constructors and DestructorsConstructors and Destructors
Constructors and Destructors
 
Constructor and Destructor
Constructor and DestructorConstructor and Destructor
Constructor and Destructor
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 
Decision Making and Looping
Decision Making and LoopingDecision Making and Looping
Decision Making and Looping
 
Component object model and
Component object model andComponent object model and
Component object model and
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
Inheritance ppt
Inheritance pptInheritance ppt
Inheritance ppt
 
Looping statement
Looping statementLooping statement
Looping statement
 
Conditional Statement in C#
Conditional Statement in C#Conditional Statement in C#
Conditional Statement in C#
 
C#.NET
C#.NETC#.NET
C#.NET
 
Java 8 Default Methods
Java 8 Default MethodsJava 8 Default Methods
Java 8 Default Methods
 
Templates in c++
Templates in c++Templates in c++
Templates in c++
 
compiler ppt on symbol table
 compiler ppt on symbol table compiler ppt on symbol table
compiler ppt on symbol table
 
Java threading
Java threadingJava threading
Java threading
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
 
Hybrid inheritance
Hybrid inheritanceHybrid inheritance
Hybrid inheritance
 

En vedette (11)

C# looping basic
C# looping basicC# looping basic
C# looping basic
 
C# Loops
C# LoopsC# Loops
C# Loops
 
Do While and While Loop
Do While and While LoopDo While and While Loop
Do While and While Loop
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Selection Statements in C Programming
Selection Statements in C ProgrammingSelection Statements in C Programming
Selection Statements in C Programming
 
Flow control in computer
Flow control in computerFlow control in computer
Flow control in computer
 
Flow of control ppt
Flow of control pptFlow of control ppt
Flow of control ppt
 
Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control
 
Difference between Java and c#
Difference between Java and c#Difference between Java and c#
Difference between Java and c#
 
.NET and C# Introduction
.NET and C# Introduction.NET and C# Introduction
.NET and C# Introduction
 
Flow Control
Flow ControlFlow Control
Flow Control
 

Similaire à Flow Control (C#)

Chapter 9 - Loops in C++
Chapter 9 - Loops in C++Chapter 9 - Loops in C++
Chapter 9 - Loops in C++
Deepak Singh
 

Similaire à Flow Control (C#) (20)

Programming Fundamentals in C++ structures
Programming Fundamentals in  C++ structuresProgramming Fundamentals in  C++ structures
Programming Fundamentals in C++ structures
 
Constructs (Programming Methodology)
Constructs (Programming Methodology)Constructs (Programming Methodology)
Constructs (Programming Methodology)
 
C++ chapter 4
C++ chapter 4C++ chapter 4
C++ chapter 4
 
2. Control structures with for while and do while.ppt
2. Control structures with for while and do while.ppt2. Control structures with for while and do while.ppt
2. Control structures with for while and do while.ppt
 
C sharp chap4
C sharp chap4C sharp chap4
C sharp chap4
 
Loop control statements
Loop control statementsLoop control statements
Loop control statements
 
Control statements anil
Control statements anilControl statements anil
Control statements anil
 
Chapter 9 - Loops in C++
Chapter 9 - Loops in C++Chapter 9 - Loops in C++
Chapter 9 - Loops in C++
 
Control statements
Control statementsControl statements
Control statements
 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
 
BSc. III Unit iii VB.NET
BSc. III Unit iii VB.NETBSc. III Unit iii VB.NET
BSc. III Unit iii VB.NET
 
C language 2
C language 2C language 2
C language 2
 
Loops and conditional statements
Loops and conditional statementsLoops and conditional statements
Loops and conditional statements
 
Java Control Statements
Java Control StatementsJava Control Statements
Java Control Statements
 
Control statements
Control statementsControl statements
Control statements
 
Bansal presentation (1).pptx
Bansal presentation (1).pptxBansal presentation (1).pptx
Bansal presentation (1).pptx
 
Introduction to programming in C++ : Loop Structure.pptx
Introduction to programming in C++ : Loop Structure.pptxIntroduction to programming in C++ : Loop Structure.pptx
Introduction to programming in C++ : Loop Structure.pptx
 
Xamarin: Branching and Looping
Xamarin: Branching and LoopingXamarin: Branching and Looping
Xamarin: Branching and Looping
 
web presentation 138.pptx
web presentation 138.pptxweb presentation 138.pptx
web presentation 138.pptx
 
What is loops? What is For loop?
What is loops? What is For loop?What is loops? What is For loop?
What is loops? What is For loop?
 

Plus de Bhushan Mulmule

Plus de Bhushan Mulmule (15)

Implementing auto complete using JQuery
Implementing auto complete using JQueryImplementing auto complete using JQuery
Implementing auto complete using JQuery
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5
 
Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4Windows Forms For Beginners Part - 4
Windows Forms For Beginners Part - 4
 
Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3Windows Forms For Beginners Part - 3
Windows Forms For Beginners Part - 3
 
Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2Windows Forms For Beginners Part - 2
Windows Forms For Beginners Part - 2
 
Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1Windows Forms For Beginners Part - 1
Windows Forms For Beginners Part - 1
 
NInject - DI Container
NInject - DI ContainerNInject - DI Container
NInject - DI Container
 
Dependency injection for beginners
Dependency injection for beginnersDependency injection for beginners
Dependency injection for beginners
 
Understanding Interfaces
Understanding InterfacesUnderstanding Interfaces
Understanding Interfaces
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Inheritance
InheritanceInheritance
Inheritance
 
Classes and objects
Classes and objectsClasses and objects
Classes and objects
 
Methods
MethodsMethods
Methods
 
Getting started with C# Programming
Getting started with C# ProgrammingGetting started with C# Programming
Getting started with C# Programming
 
Overview of .Net Framework 4.5
Overview of .Net Framework 4.5Overview of .Net Framework 4.5
Overview of .Net Framework 4.5
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

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