Search for question
Question

Write a program that computes the array B by computing the square of all the elements of A whose value is greater than 10 and multiplying 5 to each element

that is less than or equal to 10. You need to use a logical array as a mask.

Fig: 1

Fig: 2