Error: Missing the closing right brace of the while body.
Correction: Add closing right brace after the statement ++c;
Error: Used stream insertion instead of stream extraction.
Correction: Change << to >>.
Error: Semicolon after else results is a logical error. The second
output statement will always be executed.
Correction: Remove the semicolon after else.
0 Questions:
Post a Comment