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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Fabiola Barrientos
    Fabiola Barrientos
    9,467 Points

    Error, operator += not valid

    Posted January 21, 2022 4:35pm 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 September 18, 2019 4:01am 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 August 14, 2019 8:32pm 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 November 12, 2018 8:02pm 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 October 27, 2018 2:36pm 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 May 5, 2018 8:36pm 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 March 25, 2018 4:57pm 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 March 25, 2018 4:07pm 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 January 10, 2018 2:20am 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 January 3, 2018 9:33pm 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 October 3, 2017 8:55am 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 July 30, 2017 1:42pm 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 July 28, 2017 12:10am 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 July 18, 2017 1:12am 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 May 13, 2017 10:42am 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 May 12, 2017 1:49am 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 May 12, 2017 12:53am 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 April 10, 2017 4:05am 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 April 5, 2017 8:05pm 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 January 30, 2017 3:30am 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 January 20, 2017 3:37am 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 January 10, 2017 9:43pm 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 October 30, 2016 2:16am 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 October 7, 2016 10:50pm 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 September 25, 2016 6:45pm 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 September 20, 2016 6:27pm 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 July 25, 2016 8:36am 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 May 31, 2016 11:28am 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.