Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Please, help me. I am new in programing. I try but I can not do it. Please, can you someone explain me ?

Program in C that takes a number from 1 to 10 as a user input (unless sentinel value is provided), checks if the number is not odd, and if not, multiply user’s input by 100. By using while, switch, if statements and continue and brake keywords.

Steven Parker
Steven Parker
216,012 Points

It might be easier to get help if you post your question in the topic area for the language you are working with. Also, provide a link to the course page with the specific task instructions.

If you're working with a course challenge, the "get help" button will usually start a question and automatically provide a link and a copy of your code.

1 Answer

hello, thank you for answering. I could not find C language. Please, if you have time, can you help me?

Steven Parker
Steven Parker
216,012 Points

Oh, good point, the "C" language is not taught by Treehouse or supported on this forum. C# would probably be the closest language here.

Also, this description of the objective doesn't seem complete. In particular:

  • it says "unless sentinel value is provided" but doesn't say by what mechanism this value will be provided
  • it's not clear what should be done with the result of multiplying an odd number by 100
  • it's not clear what should be done if the number is found to be even

Perhaps the original instructions have more info and/or provide some examples that would fill in these gaps. Can you provide a link to them?