PRF192_-_PE03_-_SP_2025_3851.webp
Văn Khang

PRF192_-_PE03_-_SP_2025_3851.webp

The given file Q3.c already contains statements to input data for the one-dimensional array of
Kizspy. megers. You should write statements so that find the biggest number in an array.
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 the number of elements: 5
a[0]=3
a[1]=4
a[2]=2
a[3]=8
a[4]=7
After processing: max=8
Output for marking:
OUTPUT:
8
Question 4:
(3 marks)
The given file Q4.c already contains statements to input a string to named s. You will write statements
to calculate the average value of characters in the strings (value of characters are decimal according
to ASCII code).
Notes:
- You can create new functions if you see it is necessary.
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom