(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