11748 - 231001_12/21_practice14-3   

Description

  • A fraction can be written as a/b where a and b are integers and a, b ≠ 0.

  • Read the comments in p-14-3.cpp and fill all functions to finish this exercise.

Input

  • Input: See the sample I/O

  • Input format: See the sample I/O

Output

  • Output: See the sample I/O

  • Output format:

  1. There is a space before and after each character (+,−,*,/,=), however,  the sign “-” doesn’t include in this character.

  2. Change a new line at the end of each line.

Sample Input  Download

Sample Output  Download

Tags




Discuss