Toán Tử

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu

Nhập vào hai số thực khác 0, thực hiện các phép toán cơ bản \( +,-,*,/ \).

Dữ liệu

Một dòng duy nhất, gồm 2 số thực a và b \( (0 \neq |a|,|b|\leq 10^4) \).

Kết quả

Gồm 4 dòng, mỗi dòng tương ứng kết quả một phép toán. Kết quả làm tròn đến 2 chữ số phần thập phân.
Xem ví dụ dưới đây để hiểu rõ hơn quy cách định dạng.

Input

20.23 17.2

Output

20.23 + 17.20 = 37.43
20.23 – 17.20 = 3.03
20.23 * 17.20 = 347.96
20.23 / 17.20 = 1.18

Comments

Please read the guidelines before commenting.


There are no comments at the moment.