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

PROGRAMMING:Program to add two fractions.

Luz5年前 (2021-05-10)题库464
Input two fractions, such as 3 / 4 + 1 / 2, output 3 / 4 + 1 / 2 = 5 / 4.
When running the program, as shown in the figure below:
![ ff.png](~/42a7a6d9-d351-4314-aec2-a67a749adfb6.png)
###Input sample 1:
```in
3/4+1/2
```
###Input sample 2:
```in
1/6+1/2
```
###Output sample 1:
```out
3/4+1/2=5/4
```
###Output sample 2:
```out
1/6+1/2=2/3
```






answer:If there is no answer, please comment