PROGRAMMING:Temperature conversion
There are different systems for temperature characterization. The freezing point and boiling point of water at 1 ℃ are 0 ℃ and 100 ℃, respectively. The freezing point of water is 32 degrees and the boiling point is 212 degrees at 1 standard atmospheric pressure.
According to the definition of Fahrenheit and centigrade temperature, the conversion formula is as follows:
C = ( F – 32 ) / 1.8
F = C * 1.8 + 32
###Input format:
Enter a real number for temperature, followed by letters for temperature system: f or F for Fahrenheit, and C or C for centigrade. There is no separator between the real number and the letters.
###Output format:
Output the converted temperature (with two decimal places, followed by temperature system specifier and capital letters); If the input data format is wrong (the temperature system is not marked effectively), output error
###Input example:
Here is a set of inputs. For example:
```in
36.8C
```
###Output example:
The corresponding output is given here. For example:
```out
98.24F
```
###Input example:
Here is a set of inputs. For example:
```in
10f
```
###Output example:
The corresponding output is given here. For example:
```out
-12.22C
```
###Input example:
Here is a set of inputs. For example:
```in
78.2#
```
###Output example:
The corresponding output is given here. For example:
```out
Error
```
answer:If there is no answer, please comment
According to the definition of Fahrenheit and centigrade temperature, the conversion formula is as follows:
C = ( F – 32 ) / 1.8
F = C * 1.8 + 32
###Input format:
Enter a real number for temperature, followed by letters for temperature system: f or F for Fahrenheit, and C or C for centigrade. There is no separator between the real number and the letters.
###Output format:
Output the converted temperature (with two decimal places, followed by temperature system specifier and capital letters); If the input data format is wrong (the temperature system is not marked effectively), output error
###Input example:
Here is a set of inputs. For example:
```in
36.8C
```
###Output example:
The corresponding output is given here. For example:
```out
98.24F
```
###Input example:
Here is a set of inputs. For example:
```in
10f
```
###Output example:
The corresponding output is given here. For example:
```out
-12.22C
```
###Input example:
Here is a set of inputs. For example:
```in
78.2#
```
###Output example:
The corresponding output is given here. For example:
```out
Error
```
answer:If there is no answer, please comment