PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp
thanhphuong

PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp

==
(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

Thông tin

Category
PRF192
Thêm bởi
thanhphuong
Ngày thêm
Lượt xem
2,036
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_FA_2024_-_PE_-_s_-_5_2869.webp
File size
176.1 KB
Dimensions
1920px x 1051px

Share this media

Back
Bên trên Bottom