Kizspy.me
Question 8:
(1 mark, file to be edited: Q8.c)
Your program allows the user to enter an array of N integers and an integer M.
Find and print all perfect squares in the array. If found, compute their Mth power.
An integer that can be expressed as the square of another integer is called a perfect square. For
example: 9 3*3; 25 = 5*5
Below is an example:
Enter N = 5; array = {9, 4, 3, 16, 8); M = 2
9 4 3 16 8
562
OUTPUT:
81 16 256
Press any key to continue
Question 9:
(1 mark, file to be edited: Q9.c)
Zoom
+100%
Close