PRF192_-_PE01_-_SU_2024_2174.webp
E

PRF192_-_PE01_-_SU_2024_2174.webp

  • Media owner Edward88
  • Ngày thêm
statements to print out the sum of all prime numbers in array a (the primes start from 2).
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:
How many elements do you want to enter into the integer array? [1..100] 6
2
5
4
1
6
3
After processing: s = 2+5+3 = 10
Output for marking:
OUTPUT:
10
Question 4:
Zoom
(3 marks)

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

Thông tin

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

Image metadata

Filename
PRF192_-_PE01_-_SU_2024_2174.webp
File size
92.1 KB
Dimensions
1145px x 792px

Share this media

Back
Bên trên Bottom