1-lf N(I, J) < 0 The J, I 4-End If 1-If NGJ ) > 0 The

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
Solution that
1-lf N(I, J) < 0 Then 2-Print I; (","); J; 3-Next
J, I 4-End If
1-lf N(J, I) > 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 J, I
1-If N(I, J) < 0 Then 2-End If 3- Next J, I 4-
Print I; (","); J;
1-lf N(I, J) < 0 Then 2-Print I; (","); J; 3-End If
4-Next I, J
Transcribed Image Text:1-lf N(I, J) < 0 Then 2-Print I; (","); J; 3-Next J, I 4-End If 1-lf N(J, I) > 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 J, I 1-If N(I, J) < 0 Then 2-End If 3- Next J, I 4- Print I; (","); J; 1-lf N(I, J) < 0 Then 2-Print I; (","); J; 3-End If 4-Next I, J
Suppose N is a (6x3) matrix array. This
program segment print the locations
.of the negative elements
For I = 1 To 6
For J = 1 To 3
1-......
2-....
3-....
4-....
Transcribed Image Text:Suppose N is a (6x3) matrix array. This program segment print the locations .of the negative elements For I = 1 To 6 For J = 1 To 3 1-...... 2-.... 3-.... 4-....
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single source shortest path
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