Long description
The lines read as follows. Line 1. Initialize passes to zero. Line 2. Initialize failures to zero. Line 3. Initialize student counter to one. Line 4. Blank. Line 5. While student counter is less than or equal to 10. Line 6, indented once. Prompt the user to enter the next exam result. Line 7, indented once. Input the next exam result. Line 8. Blank. Line 9, indented once. If the student passed. Line 10, indented twice. Add one to passes. Line 11, indented once. Else. Line 12, indented twice. Add one to failures. Line 13. Blank. Line 14, indented once. Add one to student counter. Line 15. Blank. Line 16. Print the number of passes. Line 17. Print the number of failures. Line 18. Blank. Line 19, indented once. If more than eight ...
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.