Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdfgdhdsfhs
30 PointsPlease, 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.
1 Answer
dfgdhdsfhs
30 Pointshello, thank you for answering. I could not find C language. Please, if you have time, can you help me?
Steven Parker
231,248 PointsOh, 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?
Steven Parker
231,248 PointsSteven Parker
231,248 PointsIt 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.