✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops
    • Close
  • Fabiola Barrientos
    Fabiola Barrientos
    9,467 Points

    Error, operator += not valid

    Posted on Jan 21, 2022 by Fabiola Barrientos
    Fabiola Barrientos
    9,467 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Joseph Salinas
    Joseph Salinas
    12,086 Points

    Foreach loop

    Posted on Sep 18, 2019 by Joseph Salinas
    Joseph Salinas
    12,086 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • danielchristie
    danielchristie
    21,505 Points

    asdasdsad

    Posted on Aug 14, 2019 by danielchristie
    danielchristie
    21,505 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    0 Answers

  • Chris Gauthier
    PLUS
    Chris Gauthier
    Courses Plus Student 6,434 Points

    Whats up with this?

    Posted on Nov 12, 2018 by Chris Gauthier
    Chris Gauthier
    Courses Plus Student 6,434 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Dalin Nkulu
    Dalin Nkulu
    15,587 Points

    foreach loop challenge: i don't understand the conditional statement

    Posted on Oct 27, 2018 by Dalin Nkulu
    Dalin Nkulu
    15,587 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • Hermes Crespo
    Hermes Crespo
    980 Points

    Why am I getting the error message: FrogStats.cs(12,45): error CS1061: Type `Treehouse.CodeChallenges.Frog[]' does....

    Posted on May 5, 2018 by Hermes Crespo
    Hermes Crespo
    980 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Mahyar Najizad
    Mahyar Najizad
    3,572 Points

    I am still having problem here!!!

    Posted on Mar 25, 2018 by Mahyar Najizad
    Mahyar Najizad
    3,572 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Mahyar Najizad
    Mahyar Najizad
    3,572 Points

    Why am I getting errors here ?

    Posted on Mar 25, 2018 by Mahyar Najizad
    Mahyar Najizad
    3,572 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • olu adesina
    olu adesina
    23,007 Points

    c# help!!! error CS0165: Use of unassigned local variable `totalTongueLength'

    Posted on Jan 10, 2018 by olu adesina
    olu adesina
    23,007 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • Michael Thompson
    Michael Thompson
    7,427 Points

    No idea where to even start.

    Posted on Jan 3, 2018 by Michael Thompson
    Michael Thompson
    7,427 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • Giannis Kataras
    Giannis Kataras
    1,279 Points

    Code not compiling again

    Posted on Oct 3, 2017 by Giannis Kataras
    Giannis Kataras
    1,279 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Barry Ort
    Barry Ort
    12,373 Points

    I don't know what is wrong

    Posted on Jul 30, 2017 by Barry Ort
    Barry Ort
    12,373 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Ildar Gabitov
    Ildar Gabitov
    15,520 Points

    Need advise on the challenge task foreach loop

    Posted on Jul 28, 2017 by Ildar Gabitov
    Ildar Gabitov
    15,520 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Herman Vicens
    Herman Vicens
    12,540 Points

    Data mismatch problems

    Posted on Jul 18, 2017 by Herman Vicens
    Herman Vicens
    12,540 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • LESTER POLICARPIO
    LESTER POLICARPIO
    2,139 Points

    Return the average length of the tongues of the frogs in the array. Use a foreach loop as part of your solution.

    Posted on May 13, 2017 by LESTER POLICARPIO
    LESTER POLICARPIO
    2,139 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • Michael North
    Michael North
    2,561 Points

    Please check

    Posted on May 12, 2017 by Michael North
    Michael North
    2,561 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Michael North
    Michael North
    2,561 Points

    Don't know answer

    Posted on May 12, 2017 by Michael North
    Michael North
    2,561 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • ryan forsyth
    ryan forsyth
    9,919 Points

    Return the average length of the tongues of the frogs in the array. Use a foreach loop as part of your solution.

    Posted on Apr 10, 2017 by ryan forsyth
    ryan forsyth
    9,919 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Travis John Villanueva
    Travis John Villanueva
    5,052 Points

    returning a value from a for each loop

    Posted on Apr 5, 2017 by Travis John Villanueva
    Travis John Villanueva
    5,052 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points

    Need help Return the average length of the tongues of the frogs in the array. Use a foreach loop as part of your solutio

    Posted on Jan 30, 2017 by Jonathan Barnthouse
    Jonathan Barnthouse
    2,801 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    3 Answers

  • Michael Fitzgerald
    Michael Fitzgerald
    7,006 Points

    Trouble with foreach loops

    Posted on Jan 20, 2017 by Michael Fitzgerald
    Michael Fitzgerald
    7,006 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    4 Answers

  • Dominick McCleary
    Dominick McCleary
    3,012 Points

    help on foreach loops

    Posted on Jan 10, 2017 by Dominick McCleary
    Dominick McCleary
    3,012 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • Pedro Gonzalez
    Pedro Gonzalez
    2,097 Points

    I am stuck in the Foreach loop task. Any help is greatly appreciated

    Posted on Oct 30, 2016 by Pedro Gonzalez
    Pedro Gonzalez
    2,097 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Anatol Stepanov
    Anatol Stepanov
    6,144 Points

    Hi, cant find average? Thank you.

    Posted on Oct 7, 2016 by Anatol Stepanov
    Anatol Stepanov
    6,144 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • shawn khah
    shawn khah
    15,082 Points

    help pls

    Posted on Sep 25, 2016 by shawn khah
    shawn khah
    15,082 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

  • shawn khah
    shawn khah
    15,082 Points

    help me plz

    Posted on Sep 20, 2016 by shawn khah
    shawn khah
    15,082 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    1 Answer

  • Jamie Baldaro
    Jamie Baldaro
    15,616 Points

    Return the average length of the tongues of the frogs in the array. Use a foreach loop as part of your solution.

    Posted on Jul 25, 2016 by Jamie Baldaro
    Jamie Baldaro
    15,616 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    10 Answers

  • Thomas Newton
    PLUS
    Thomas Newton
    Courses Plus Student 2,442 Points

    Not sure what I need to do here

    Posted on May 31, 2016 by Thomas Newton
    Thomas Newton
    Courses Plus Student 2,442 Points
    • C#
    • C# Objects
    • Loops and Final Touches
    • Foreach Loops

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.