Fundamentals Program/C#/Primitive data types/Accessors Foreach Topic 3 of 30 in C# The foreach loop is a control structure that iterates through collections in a clean, readable way. It's designed specifically for iterating over elements without needing to manage indices. More in C#Primitive data typesAccessorsForeachForTypesIntFloatBoolcharValuesLiteralNon-primitive data typesStructsClassesMethodsFieldsData structuresArraysListsstringsControl FlowLoopsConditionalselse ifreturnElseifExpressions & OperatorsArithmeticAssignment PreviousAccessors NextFor All 48 topics in the Fundamentals Program