πŸ€‘ 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
  • 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,146 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,146 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.

    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.