Question 3:
3 of 4
Paper No: 1
(2 marks)
The given file Q3.c already contains statements to input data for the integer 1-D array named a. You should write statements to count the square numbers in an array
Hints:
Assume the elements in array a are positive integers A square number is a natural number whose square root is a natural number, or in other words, a square number is equal to the square of an integer. For example: 4, 9, 16,...
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
Enter the number of elements: 5
Array: 2 4 6 9 16
Zoom
FUO
+ 100%
Close