Arithmetic new requirements of thinking

Source: Internet
Author: User

1, can be customized: input number n,for n is the number of custom;
2, the topic avoids repetition:
X, arithmetic and y are different from the previous.
Compare x, compare y, compare operation symbol, same jump, different continue.
3, the range of values, compare whether the random number is within the range, if exceeded, re-random.
Control whether there is a multiplication method: My arithmetic is switch (n), the remainder n=2,3 when there is a multiplication method, to determine whether N is 2 or 3. Enter a program to control the size of N to see if there is a multiplication method.
Add and subtract whether there is no negative number: Want to determine whether n is added and minus, and then use z=x-y and 0 to compare, if there is no negative, z<0 jump re-cycle. These need to be judged before the loop is negative.

Arithmetic new requirements of thinking

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.