subject

The following is the output of Program Q3 3 4 5

5 6 7

7 8 9

The following is the program for the above output

Program Q3;

var

i, j: integer;

m3: array[(a),(b)] of integer;

begin

for i := 1 to 3 do

for j := 1 to 3 do

m3[i, j] :=2*i + j;

for i := 1 to 3 do

begin

for j :=1 to 3 do

(c) ;

(d) ;

end

end.

please fill in (a) to (d)

(e) What is the value stored in m3 [3, 1] ?

(f) What is the value stored in m3 [3, 1] if line 9 m3 [ i , j ] := 2*i+j; is changed to m3 [j , i ] :=2*i+j ?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
3. write assignment statements that perform the following operations with the variables a, b, and c: a. adds 2 to a and assigns the result to b b. multiplies b times 4 and assigns the result to a c. divides a by 3.14 and assigns the result to b
Answers: 2
question
Computers and Technology, 25.06.2019 10:00
One way news orginaztions can influence people is by: a.slanting information b.accepting all beliefs c.sharing a true perspective d.giving people money
Answers: 1
You know the right answer?
The following is the output of Program Q3 3 4 5

5 6 7

7 8 9

Th...
Questions
question
Mathematics, 18.01.2020 01:31
question
History, 18.01.2020 01:31
Questions on the website: 13722361