... forward slash calculate new amount for specified year. Line 19, indented 3 times. amount equals principal asterisk Math period p o w left parenthesis 1 period 0 plus rate comma year right parenthesis semicolon. Line 20. Blank. Line 21, indented 3 times. forward slash forward slash display the year and the amount. Line 22, indented 3 times. System period out period print f left parenthesis double quote percent sign 4d percent sign comma 20 period 2f back slash n double quote comma year comma amount right parenthesis semicolon. Line 23, indented twice. right brace forward slash forward slash end for. Lines 17 to 23 are highlighted. Line 24, indented once. right brace forward slash forward slash end main. Line 25. right brace forward slash forwar

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.