kjdskcd9347 kjdskcd9347
  • 01-09-2020
  • Computers and Technology
contestada




analyze the given code

For I = 1 to n

For j = 1 to n

C =[i.j] = 0

For k=1 to n

C[i.j] = c [i.j] + a[i.k] * b[k.j]

End

End

end

Respuesta :

codiepienagoya codiepienagoya
  • 02-09-2020

Answer:

Following are the description to the given code:

Explanation:

In the given code, three for loop are used that uses the variable "I, J, and K", which starts from 1 and ends when it equal to the value of the "n".

Inside the "I and J" loop, another variable "C" is defined, which uses "i,j" and assign a value, that is equal to 0. In the "k" loop, it uses the "c[i.j]" to multiply the value of "a[i.k] and b[k.j]".

In other words, we can say, it calculates the multiplication of the matrix and stores its calculated value.

Answer Link

Otras preguntas

What is the lateral area of the rectangular prism with a base length of 17 m, a base width of 7 m, and a height of 5 m?
The Radius of a sphere is 5 feet. find the area of the great circle of this sphere
Which of the following rivers is the world's busiest waterway ?
Who were the Nazis ?
if you live 35 miles from work & drive 35 mph how long would it take to get there
The base of right prism is rhombus of diagonal is 6 and 8cm and altitude is 12 cm find total surface area
Which of the following rivers is the world's busiest waterway ?
The circumference of a circle is 6.28.What is the area of the circle?
Find an equivalent ratio for 22/55 and then write the proportion
Terri's teacher gives her the equation 3(5)^x=127-2x, and tells her that she will not know how to solve it algebraically. Explain how Terri could use a graph to