2010-11-23 08:00:07 UTC
prime elements of a two-dimensional 10X15 integer array A.
Within the MAIN function:
. Declare a two-dimensional 10X15 integer array A and initialize
it with random numbers between 100 and 500 inclusive.
. Declare also a one-dimensinal integer array B with a reasonable
size to hold the prime elements of the array A.
. Print the array A.
. Pass the arrays A and B to the FUNCTION1 as arguments and get
the return value(the size of B, the number of prime elements
of A stored in B) from the FUNCTION1.
. Pass the array B and the size of B(returned value from the
FUNCTION1) to the FUNCTION2 as arguments.
Within the FUNCTION1:
. Read array A elements and compute and store the prime elements
of A into the array B.
(An integer n>=2 is said to be prime
if and only if no integer k, 2<= k <= sqrt, divides n).
. Return the size of the array B(the number of the prime elements
stored in B) to the MAIN function.
Within the FUNCTION2:
. Print the array B.
Really need help with this