Console. Write. Line("Cases sold: {0}n. Money Received: {1: C}n. Cost of bars: {2: C}n. Profit: {3: C}n. Donation: {4: C}" , cases, income, bar. Cost, profit, gov. Money); Console. Write. Line("Test Score 2: " + "{0: f 1}", score 2); Format specifier - Location: format Format specifier with Width Specifier – Location, width: format
Magic Numbers • Numbers appearing in your code. • Numbers that are part of a Standard Formulas do not need commented. • loop variables • area of a square • volumes • Magic numbers must be made a constant or commented. • Determining Change will have magic numbers but you should use comments, not constants.