Skip to content

Is the `for` statement just a condensed way of writing a `while` statement?

Notifications You must be signed in to change notification settings

lastunicorn/While-vs-For

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

while vs for

Pill Category

Language (C#)

Description

Loops in C#

In C# there are multiple ways to write a loop:

  • while
  • do-while
  • for
  • foreach

In this C# Pill I want to focus on the relation between two of them: the while and the for and to answer the following question:

Question

  • Is the for statement just a condensed way of writing a while statement?

Donations

If you like my work and want to support me, you can buy me a coffee:

ko-fi

About

Is the `for` statement just a condensed way of writing a `while` statement?

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Languages