The second supplement to the 30-arithmetic problem

Source: Internet
Author: User

Requirement 1: The topic avoids repetition.

The results are checked, and each question is accessed, the newly generated topics are matched, and the duplicates are removed.

Lele: IO stream;

Requirement 2: Can be customized (quantity/printing method);

The number of 30 in the for () loop becomes a parameter Dingzhi from the keyboard input;

Requirement 3:

A is there a multiplication method

The parameter C is controlled: Division c=0; addition C=1; subtraction c=2; multiplication c=3;

Use if to control the user input whether to multiplication method

b whether there are parentheses

The program should be improved into mixed operation; if 0 Cout<<;else cout<<

C Range of values

Prompt statement; new parameter

The parameters A and B are controlled, and the new parameters are used as the control conditions behind the stochastic function.

D plus minus have no negative numbers

Control the contents of case 2; A>b or a<b;

E Division Remainder

Control the contents of case 0;

F Support Score (true score, false score)

Input prompt statement

True score: Result output form A/b output

Whether G supports decimals

Enter the prompt statement;

H can I adjust the interval of each line in the print?

Parameter set a "" is judged by the contents of the parameter set.

The second supplement to the 30-arithmetic problem

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.