Code Debug Test on arithmetic

Source: Internet
Author: User

1. First Test whether the problem can be negative, 0?

Summary: The number of questions to 0, and did not prompt re-input, but output blank, and when the output problem is negative when the system prompts the error, and the prompt to terminate

2. The detection operation is worth the range:

Summary: When the operand range is negative, the system does not prompt an error, but the range is the absolute value of the negative, and when the range is set to 0, the system prompts to stop working

3. What happens when I enter an unexpected character (y/n)?

Summary: When entering letters or numbers, the system error, output space, and no op-type output

4. When the number of expressions and the interval input letters or numbers when the system has no error?

Summary: When the number of expressions entered into the alphabet, the system aborts, and when each line of the interval of the expression of the letter, the system continues to output no stop, Error!

Code Debug Test on arithmetic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.