Skip to main content

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

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

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

  • 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
  • smatt
    smatt
    2,115 Points

    In this instance couldn't we just exempt the else statement? Why is it necessary?

    Posted May 8, 2019 4:35pm by smatt
    smatt
    2,115 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    2 Answers

  • Danny Yang
    Danny Yang
    663 Points

    receiving error CS1644

    Posted March 22, 2019 8:16am by Danny Yang
    Danny Yang
    663 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Christian Poppe
    Christian Poppe
    290 Points

    Program.cs(33,16): error CS0136

    Posted October 31, 2018 8:00pm by Christian Poppe
    Christian Poppe
    290 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Ahmed Noor
    PLUS
    Ahmed Noor
    Courses Plus Student 7,539 Points

    Getting multiple errors - CS1525 and CS1519. Copied and pasted the code in lesson and still getting same errors.

    Posted June 18, 2018 6:58am by Ahmed Noor
    Ahmed Noor
    Courses Plus Student 7,539 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    4 Answers

  • Arran C
    Arran C
    880 Points

    Errors galore

    Posted February 27, 2018 8:41pm by Arran C
    Arran C
    880 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    2 Answers

  • Rasmus Hall
    Rasmus Hall
    1,260 Points

    CS1525

    Posted February 17, 2018 8:46am by Rasmus Hall
    Rasmus Hall
    1,260 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points

    "Clear" what it is?

    Posted October 20, 2017 8:03am by Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • yossef gamal
    yossef gamal
    476 Points

    What is the difference between break and if/else ?

    Posted October 1, 2017 6:16am by yossef gamal
    yossef gamal
    476 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • jimmyfagerberg
    jimmyfagerberg
    7,673 Points

    When to say 'Bye bye'

    Posted August 16, 2017 6:05am by jimmyfagerberg
    jimmyfagerberg
    7,673 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Edward Hwang
    PLUS
    Edward Hwang
    Courses Plus Student 1,047 Points

    Compile error: The name 'Console' does not exist in the current context

    Posted August 14, 2017 2:04am by Edward Hwang
    Edward Hwang
    Courses Plus Student 1,047 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    3 Answers

  • Ryan Darwent
    Ryan Darwent
    871 Points

    Error: Program.cs(129,250): error CS1525: Unexpected symbol `end-of-file'

    Posted July 17, 2017 4:14am by Ryan Darwent
    Ryan Darwent
    871 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Raymond Yau
    Raymond Yau
    811 Points

    Compile error: unexpected symbol '{' and 'else'

    Posted July 4, 2017 1:46pm by Raymond Yau
    Raymond Yau
    811 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Oualid Jniyah
    Oualid Jniyah
    21,607 Points

    using the same code from the teacher notes (1,12): error CS1525: Unexpected symbol `.', expecting `,', `;', or `='

    Posted May 21, 2017 8:02am by Oualid Jniyah
    Oualid Jniyah
    21,607 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Matthew Musni
    Matthew Musni
    610 Points

    It won't work. It Doesn't loop. What's wrong

    Posted May 6, 2017 2:05pm by Matthew Musni
    Matthew Musni
    610 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • wgrywgrywgryg
    wgrywgrywgryg
    854 Points

    null

    Posted May 4, 2017 10:37pm by wgrywgrywgryg
    wgrywgrywgryg
    854 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Terrell Bond
    Terrell Bond
    583 Points

    error CS2001: Source file 'program.cs' could not be found

    Posted April 21, 2017 6:30pm by Terrell Bond
    Terrell Bond
    583 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Gustav Aldenberg
    Gustav Aldenberg
    160 Points

    Text appearing in console not the same as my "Console.Write();" text

    Posted March 13, 2017 4:45pm by Gustav Aldenberg
    Gustav Aldenberg
    160 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Matthew Keys
    Matthew Keys
    1,922 Points

    Unhandled Exception when saying quit

    Posted February 26, 2017 1:46pm by Matthew Keys
    Matthew Keys
    1,922 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    2 Answers

  • Jim Conachan
    Jim Conachan
    2,514 Points

    C# error

    Posted February 8, 2017 5:10pm by Jim Conachan
    Jim Conachan
    2,514 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    10 Answers

  • ali raafat
    ali raafat
    444 Points

    i need help in my Program

    Posted February 4, 2017 2:21pm by ali raafat
    ali raafat
    444 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • ali raafat
    ali raafat
    444 Points

    i need help because its not working it quits after i enter only one thing

    Posted January 5, 2017 6:23pm by ali raafat
    ali raafat
    444 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    2 Answers

  • ali raafat
    ali raafat
    444 Points

    i cant view my quit nor my exercises minutes

    Posted January 3, 2017 7:45pm by ali raafat
    ali raafat
    444 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Victor Wooding
    Victor Wooding
    12,430 Points

    Where should you place Console.WriteLine("Goodbye"); for this video?

    Posted September 29, 2016 2:56am by Victor Wooding
    Victor Wooding
    12,430 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    4 Answers

  • douglas gray
    douglas gray
    888 Points

    placing curly braces

    Posted August 2, 2016 6:17pm by douglas gray
    douglas gray
    888 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Lan Do
    PLUS
    Lan Do
    Courses Plus Student 290 Points

    how to exit a video i have watched already.

    Posted January 16, 2016 12:39am by Lan Do
    Lan Do
    Courses Plus Student 290 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

  • Joel Muro
    Joel Muro
    2,884 Points

    if objective

    Posted January 4, 2016 7:39pm by Joel Muro
    Joel Muro
    2,884 Points
    • C#
    • C# Basics (Retired)
    • Perform
    • if / else

    1 Answer

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