0

What must to do a program when user puts 0? My one re-prompts (re-asks) user for new int.

:( handles a height of 0 correctly

\ expected an exit code of 0, not output of

1 Answer 1

1

It wants you to exit. Simply return 0, do not ask user to retry.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .