Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 582 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 582 Bytes

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