Suppose N is a (6x3) matrix array. This program segment print the locations of the negative elements. Captionless Image O O 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If 4-Next J, I 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If 4-Next I, J 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-Next J, I 4-End If 1-If N(J, I) > 0 Then 2-Print I; (",); J; 3-End If 4-Next J, I 1-If N(I, J) < 0 Then 2-End If 3- Next J, I 4- Print I; (","); J;

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
ZMA @
Suppose N is a (6x3) matrix array. This
program segment print the locations
of the negative elements.
Captionless Image
O
O
10:00 م
3G Asiacell ...
1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If
4-Next J, I
1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If
4-Next I, J
1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-Next J,
I 4-End If
1-If N(J, I) > 0 Then 2-Print I; (","); J; 3-End If
4-Next J, I
1-If N(I, J) < 0 Then 2-End If 3- Next J, I 4-
Print I; (","); J;
Transcribed Image Text:ZMA @ Suppose N is a (6x3) matrix array. This program segment print the locations of the negative elements. Captionless Image O O 10:00 م 3G Asiacell ... 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If 4-Next J, I 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-End If 4-Next I, J 1-If N(I, J) < 0 Then 2-Print I; (","); J; 3-Next J, I 4-End If 1-If N(J, I) > 0 Then 2-Print I; (","); J; 3-End If 4-Next J, I 1-If N(I, J) < 0 Then 2-End If 3- Next J, I 4- Print I; (","); J;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage