Arithmetic evolutionary version of design ideas

Source: Internet
Author: User

Design ideas:

1. Avoid duplication of questions

(1) Call the system time function, the generated expression store, the new expression and the generated formula to compare, if the same does not output, different output

2, can be customized (quantity/printing method)

(1) Prompt the user to enter the number of questions, printing methods, from the keyboard input

3, (1) whether there is multiplication law

Prompt the user before entering whether there is a multiplication method, if not, only the output plus subtraction

(2) whether there are brackets

(3) Range of values

Set the range of values by the user, if the input is not legal, prompt for input errors, please re-enter, in the random generation number to ensure that the random number in the user-set range of values

(4) Increase or decrease with or without negative numbers

If there are no negative numbers, compare the generated two numbers to ensure that the subtraction is not less than the meiosis

(5) The multiplication has no number

First determine whether the divisor is zero, if zero is terminated, if not zero then continue. The two operands that do the division do the remainder operation, if zero, there is no residue

Arithmetic evolutionary version of design ideas

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.