Four arithmetic operations 2 design ideas, four arithmetic design ideas

Source: Internet
Author: User

Four arithmetic operations 2 design ideas, four arithmetic design ideas

Four RMB 2-Design Philosophy
Requirement 1: avoid repeated questions
(1) control by srand (time (NULL.
Requirement 2: Customizable (quantity/printing Mode)
(1) define a parameter and use the quantity entered by the user to control the quantity;
(2) the output format can currently be set in two ways: vertical X channels and X * Y output, where X and Y can be selected by the user.
Requirement 3: Control Parameters
(1) All parameter control needs to be selected by the user. The control is implemented in the main function, and the print function is designed separately.
(2) You can set several output functions for the value range.
(3) Whether there is multiplication or division, which can be controlled in the output function and selected by the user
(4) add or remove negative numbers. You can use the parameter to compare the size.
Overall Design: The program involves a lot of loops, one layer of design.

Related Article

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.