Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord