PRF192_-_FA_2024_-_Block_5_-_PE_-_s_2_3218.webp
BichPhuong97

PRF192_-_FA_2024_-_Block_5_-_PE_-_s_2_3218.webp

(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an array of 'n' integers, where 'n' is entered by the user.
The program prints duplicate elements that are even numbers to the screen. There is a newline character between any two adjacent numbers.
Below is an example:
8
2 3 4 2 7 8 8 3
OUTPUT:
2 8
Press any key to continue
Question 9:
(1 mark, file to be edited: Q9.c)
Your program should allow users to enter an integer 'n'.
The program prints octal representation of 'n' if it is a prime number; else the program prints: "n is not a prime number" where 'n' is the number entered by the user.
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_FA_2024_-_Block_5_-_PE_-_s_2_3218.webp
File size
145.2 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom