☑Kizspy.me
5015
Paper No: Z
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
5
943 16 8
2
OUTPUT:
81 16 256
Press any key to continue
Question 9:
(1 mark, file to be edited: Q9.c)
Vaux am allows the war to antara list of mendunt name in leannested by commal
Zoom
+ 100%
Close