Home > Back-end >  C program design
C program design

Time:10-18

The user first input operation type, 1 for addition, 2 for subtraction, 3 for multiplication, 4 for the division,

And then enter the two operands, calculated according to the type of the input operation, the output, then wait for the user to enter the next operation type, loop calculation, until the user input "0",

Note:

1. All the operands and the result is an integer, and does not take into account the situation of floating point Numbers,

2. If the user enters the divisor is 0, output "ERROR", pay attention to the case, not including the quotes,

CodePudding user response:

This is my homework,,,

CodePudding user response:

This type of problem, we must do, always can't do anything,

CodePudding user response:

So obvious operations, could not help but see the information of the building Lord, on the day of registration, send a post, then don't come, or to the also don't talk,

The building Lord you believe that someone will help you?

CodePudding user response:

LZ ID is 19931230, now should be less than 20 years old, is a sophomore or junior year?
Good good study, how their work hard, cherish the good times

CodePudding user response:

Good simple structure of a program, study hard, young, more than myself to write the program, this work out the future has a lot of help to you

CodePudding user response:

BCB instance tutorial search on the net that is punctuated with simple calculator, reference to modify, is not difficult,
  • Related