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
  • Elfar Oliver
    Elfar Oliver
    3,924 Points

    I've done the ifs I don't know what to return Cannot implicitly convert type 'double' to 'string'

    Posted December 5, 2021 3:50pm by Elfar Oliver
    Elfar Oliver
    3,924 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • coconuttree24
    coconuttree24
    1,234 Points

    saying error on line 6 but this is pre determined code. What am I missing?

    Posted October 22, 2021 2:34am by coconuttree24
    coconuttree24
    1,234 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    2 Answers

  • Luiz Peres
    Luiz Peres
    1,507 Points

    CheckSpeed

    Posted September 9, 2021 8:05pm by Luiz Peres
    Luiz Peres
    1,507 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Ulyssa Sneed
    Ulyssa Sneed
    8,894 Points

    I dont understand this!!!

    Posted May 17, 2021 7:34am by Ulyssa Sneed
    Ulyssa Sneed
    8,894 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • gabrielalcaraz
    gabrielalcaraz
    7,694 Points

    error CS0019: Operator '>' cannot be applied to operands of type 'method group' and 'int'

    Posted April 22, 2021 3:50am by gabrielalcaraz
    gabrielalcaraz
    7,694 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Jon Burchette
    Jon Burchette
    601 Points

    Confused on why this isn't working, what am I missing?

    Posted January 7, 2021 8:39pm by Jon Burchette
    Jon Burchette
    601 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    2 Answers

  • Ben Perring
    Ben Perring
    2,383 Points

    why does this error occur in my code? as far as i can see it should run

    Posted September 20, 2020 12:15pm by Ben Perring
    Ben Perring
    2,383 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Josh Colton
    Josh Colton
    556 Points

    This challenge returns incorrect result.

    Posted August 12, 2020 1:20am by Josh Colton
    Josh Colton
    556 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Alex Smutny
    Alex Smutny
    649 Points

    I'm not sure how to convert. Can someone help me out?

    Posted July 14, 2020 8:22am by Alex Smutny
    Alex Smutny
    649 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points

    If/else if is driving me nuts.

    Posted April 5, 2020 8:55am by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • victor E
    victor E
    19,971 Points

    i really think my code is correct but its keeps coming back wrong. any thoughts?

    Posted January 22, 2020 1:30pm by victor E
    victor E
    19,971 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Austin Stewart
    Austin Stewart
    2,662 Points

    I really can't figure out where im going wrong on this code..

    Posted October 21, 2019 6:38pm by Austin Stewart
    Austin Stewart
    2,662 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    3 Answers

  • CHRISTOPHER HUTCHERSON
    PLUS
    CHRISTOPHER HUTCHERSON
    Courses Plus Student 370 Points

    How can i fix it? using System; class Program { static string CheckSpeed(double speed) { if(speed > 6

    Posted September 17, 2019 12:25am by CHRISTOPHER HUTCHERSON
    CHRISTOPHER HUTCHERSON
    Courses Plus Student 370 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • CHRISTOPHER HUTCHERSON
    PLUS
    CHRISTOPHER HUTCHERSON
    Courses Plus Student 370 Points

    How can i fix it? using System; class Program { static string CheckSpeed(double speed) { if(speed > 6

    Posted September 17, 2019 12:25am by CHRISTOPHER HUTCHERSON
    CHRISTOPHER HUTCHERSON
    Courses Plus Student 370 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Rutendo Chaurura
    Rutendo Chaurura
    6,810 Points

    Whats wrong with my code. i'm getting the following error:

    Posted September 12, 2019 10:27am by Rutendo Chaurura
    Rutendo Chaurura
    6,810 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Redon Kalemaj
    Redon Kalemaj
    1,227 Points

    What Am I Doing Wrong?

    Posted August 11, 2019 8:48pm by Redon Kalemaj
    Redon Kalemaj
    1,227 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    1 Answer

  • Sebastian Manczak
    Sebastian Manczak
    3,551 Points

    If statements

    Posted August 7, 2019 6:54pm by Sebastian Manczak
    Sebastian Manczak
    3,551 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    2 Answers

  • Ilya Sikharulidze
    PLUS
    Ilya Sikharulidze
    Courses Plus Student 1,073 Points

    Can someone please help me, I don't understand how to use 'return' value in this case

    Posted June 26, 2019 5:17pm by Ilya Sikharulidze
    Ilya Sikharulidze
    Courses Plus Student 1,073 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    5 Answers

  • Patrick Palmowski
    Patrick Palmowski
    4,042 Points

    C# beginner“s Course / final challenge return statement

    Posted June 20, 2019 3:17pm by Patrick Palmowski
    Patrick Palmowski
    4,042 Points
    • C#
    • C# Basics
    • If Statements
    • "else if" and "else" Statements

    5 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