This topic requires programming to calculate the sum, difference, product, and Quotient of two positive integers and output them. Ensure that all input and output are in the Integer Range.
Input Format:
Input two integers A and B in a row.
Output Format:
Output and, difference, product, and Quotient in the order of format "A Operator B = Result" in the four rows.
Input example:
3 2
Output example:
3 + 2 = 53-2 = 13*2 = 63/2 = 1
Note: There are basically no difficulties in this question. Note that spaces are required in the output. The advice provided by the instructor is to copy the output sample and replace the corresponding output with the code, the format will certainly be okay.
# Include "stdio. H "int main () {int A = 0, B = 0; scanf (" % d ", & A, & B ); printf ("% d + % d = % d \ n", A, B, A + B); printf ("% d-% d = % d \ n ", a, B, a-B); printf ("% d * % d = % d \ n", A, B, A * B ); printf ("% d/% d = % d \ n", A, B, A/B); Return 0 ;}