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 trial

C#

null

null

1 Answer

Steven Parker
Steven Parker
231,172 Points

Looks good so far. :+1:

But there's obviously more to be done, as suggested by the "Repeat until user quits" comment at the bottom (and the fact that it doesn't currently repeat).

And good job on making the snapshot to share. But you should also know how to format code you post here. See the Markdown Cheatsheet link at the bottom of the "Add an Answer" section for instructions on how to format posted code. :arrow_heading_down:

Your code seems technically accurate. One minor enhancement would be to remember to add extra spaces when doing string concatenation to prevent things running into each other. For example: "The answer is: " :point_left: notice extra space added at the end of the string in anticipation of the value to be concatenated onto it.

And a factor to help increase code readability would be to use level indentation, where each level of nesting is indicated by the amount of white space at the beginning of the line. For example, namespace Calculator would be at the left edge, then class Program would be indented one tab stop (or 4 spaces), then static void Main() would be indented 2 stops, and the program statements inside Main would be indented 3 stops.

You're clearly off to a good start, so keep up the good work and happy coding!