PRF192_-_PE04_-_SP_2024_2607.webp
Mitsuri2003

PRF192_-_PE04_-_SP_2024_2607.webp

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:
- 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:
Enter n= 7013
After processing: result = 7*1*3=21
Output for marking:
Processing:
OUTPUT:21
Zoom
+ 100%
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
1,763
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
111.6 KB
Dimensions
2560px x 1281px

Share this media

Back
Bên trên Bottom