PRF192_-_PE02_-_SP_2024_1508.webp
ThanhNga88

PRF192_-_PE02_-_SP_2024_1508.webp

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
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
ThanhNga88
Ngày thêm
Lượt xem
2,738
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE02_-_SP_2024_1508.webp
File size
160.6 KB
Dimensions
1920px x 990px

Share this media

Back
Bên trên Bottom