PRF192_-_PE_-_01_-_SP_2024_1512.webp
T

PRF192_-_PE_-_01_-_SP_2024_1512.webp

  • Media owner Todo89
  • Ngày thêm
output results to score, thus the exam result will be 0
Do not edit given statements in the main function. If you change, the grading software may not be able to score and the exam result will be 0.
Question 1 (2 marks)
The given file Q1.c already contains statements to input data for two real variables named a and b (
20
2 of 3
Paper No: 1
a and b are not zero). You should write statements to check if they have the same sign then print out result of a² + b², otherwise print out result of a*b
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
- The output value is formatted in two decimal places
Sample input and output:
-Input:a= -3.5b= -4.5
After processing: result = 32.50
Zoom

+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_01_-_SP_2024_1512.webp
File size
147.1 KB
Dimensions
1366px x 744px

Share this media

Back
Bên trên Bottom