Re: maple programming

From: kelly hamer (dippie85_at_yahoo.co.uk)
Date: 12/10/04


Date: Fri, 10 Dec 2004 13:03:34 +0000 (UTC)


> help some1 about arrays need to print a second array called c
>
restart:A:=array(1..4,1..4,[[10,12,10,2],[12,25,27,3],[8,23,17,4],[6,15,6,2]]);

> C:=array(1..4,1..4);

> for i do 1 to 4

> for j do 1 to 4

> if A[i,j] < 15 then

> A[i,j] = 15

> print C = A[i,j]

> end do;

>

>

                           [10 12 10 2]

                           [12 25 27 3]

                      A := [ 8 23 17 4]

                           [ 6 15 6 2]

i need to print out that every number in the array that is less than
15 will be printed out as 15 in a second array called C