PRF192_-_FA_2024_-_PE_-_s_-_4_2866.webp
H

PRF192_-_FA_2024_-_PE_-_s_-_4_2866.webp

(1 mark, file to be edited: Q8.c)
gram allows the user to enter an array of X integers, where X is entered by the user (STDIN).Your program
Next, ask the user to enter a integer Y.
Find and print all the elements of the array. For prime elements, print its power of Y (prime numbers are numbers that have exactly two factors, 1 and itself).
Below is an example:
Enter X = 7; array = {2, 5, 8, 0, 9, 6, 7); Y = 2
7
2580967
2
OUTPUT:4 25 8 0 9 6 49
Press any key to continue
Question 9:
(1 mark, file to be edited: Q9.c)
The program requires the user to enter a list of product names in a store. Each product name is separated by a space.
Continue entering the name of a product to search.
Count and print the number of products found in the store (the product name is not case-sensitive)
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_FA_2024_-_PE_-_s_-_4_2866.webp
File size
177.1 KB
Dimensions
1920px x 923px

Share this media

Back
Bên trên Bottom