Q20Single correct5 Marks22 Dec 2024
Consider the below pseudocode:
```
Procedure updateMatrix(M)
count = 0
tempMat = M
foreach i in ListV{
foreach j in ListV{
foreach k in ListV{
if(M[i][j] == 1 and M[j][k] == 1){
if(M[k][i] == 1){
count = count + 1
}
}
}
}
}
return(count)
End updateMatrix
```
What will be the value of count at the end of the execution?