Kizspy.me
The given file Q1.c already contains statements to enter a temperature in Celsius (C). You should
write statements to convert the temperature from Celsius (C) to Fahrenheit (F).
Hints: The conversion formula for converting temperature from Celsius to Fahrenheit can be
expressed as: F=Cx9/5+32
Where,
Fis the temperature in Fahrenheit.
C is the temperature on the Centigrade scale.
Notes:
-Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
-The output result is formatted in two decimal places
Sample input and output:
Input: temperature = 20.5
After processing: result = 68.90
Output for marking:
OUTPUT:
68.90
Question 2:
(3 marks)
The given file Q2.c already contains statements to input data for variable n. You should write
statements so that calculate S by n, Sis defined as follows:
1
1
S =1+
2 3
n
Zoom

FUO
Notes:
- You can create new functions if you see it is necessary.
-Do not edit given statements in the main function.
+ 100%
Close