PRF192_-_PE04_-_SP_2024_2607.webp
Mitsuri2003

PRF192_-_PE04_-_SP_2024_2607.webp

2 of 3 Paper No: 1
===
Question 1 (2 marks)
The given file Q1.c already contains statements to input an integer variable named n (n>0). You should write statements so that print out the largest digit of n.
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
Sample input and output:
Input: n = 3598
After processing: 9
Output for marking:
OUTPUT:
9
Question 2:
(3 marks)
The given file Q2.c already contains statements to input data for an integer variable named n. You should write statements to calculate the product of its non-zero digits.
Notes:
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE04_-_SP_2024_2607.webp
File size
68.2 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom