Q5Single correct5 Marks31 Aug 2025
Consider the below pseudocode. What will the value of count be at the end of the execution?
```
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){
foreach l in ListV{
if(M[k][l] == 1){
count = count + 1
}
}
}
}
}
}
return(count)
End updateMatrix
```