QUESTION DESCRIPTION :
0
INPUT
25.23
OUTPUT
-3.76C
EXPLANATION :
The objective of this code is to convert a given Fahrenheit input temperature to Celsius.The input is a float value provided by the user , which needs to be converted and printed.The formula needed is.
ALGORITHM :
SOLUTION : (Please use this as reference only)
Write a program to convert Fahrenheit into Celsius
Input and Output Format:
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.
TEST CASE 1
INPUT
Input and Output Format:
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.
TEST CASE 1
INPUT
0
OUTPUT
-17.78C
-17.78C
TEST CASE 2
INPUT
25.23
OUTPUT
-3.76C
The objective of this code is to convert a given Fahrenheit input temperature to Celsius.The input is a float value provided by the user , which needs to be converted and printed.The formula needed is.
Formula
ALGORITHM :
- Input a float value from user ( Input the temperature ).
- Convert the temperature to Celsius ( c=(f-32)/1.8000 ).
- Output the result correct to 2 decimal places(%.2f)
SOLUTION : (Please use this as reference only)
CODE |
No comments:
Post a Comment