-->
当前位置:首页 > 题库

PROGRAMMING:Four operations 2

Luz5年前 (2021-05-10)题库378
###Task description
This topic requires reading in two integers a and B, and then output their sum, difference, product, quotient, module formula and result respectively.
###Input format:
The input has only one line, in which two integers a and B with absolute value no more than 10000 are given. In all the test data given by the title, B is guaranteed not to be 0.
###Output format:
Each formula takes up one line.
###Input example:
```in
25 4
```
###Output example:
```out
25+4=29
25-4=21
25*4=100
25/4=6
25%4=1
```
###Tips
The printf() function needs to use%% in the output string to output 1% character.







answer:If there is no answer, please comment