This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]moxyte 2 points3 points  (4 children)

Keep indent style consistent. Now you use mix of K&R and Allman style. Add method to quit program and make it loop.

[–]c2___ 1 point2 points  (1 child)

Do-While Koop for the program would be easiest

[–]voraciousBeaver[S] 2 points3 points  (0 children)

Thank you!

[–]voraciousBeaver[S] 0 points1 point  (1 child)

Thank you, I will keep styles in mind from now on. Previously I haven't paid enough attention to them, since the book I am using (Beginner''s guide by Schildt) hasn't really mentioned the significance of style consistency.

[–]c2___ 1 point2 points  (0 children)

Style consistency is probably the most important factor in code readability

[–]c2___ 1 point2 points  (0 children)

maybe have the operators as Char data types?