==
(1 mark, file to be edited: Q1.c)
The program allows the user to enter a real number: 'F' using the keyboard (STDIN). This real number is the value of the temperature in degrees F.
The program prints the value of degrees C after conversion with 2 decimal places.Knowing that, C = (F-32)*5/9.
Below is an example of how the program will run:
2 of 2
Paper No: 5
98.5
OUTPUT:
36.94 Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
The program asks the user to enter a positive integer N using the keyboard (STDIN).
Print the sum of the values of the numbers from 1 to N.
Close
+ 100%
Zoom