✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
This double loop fills an n-by-n matrix. Its running time as a function of n is:
for i in range(n):
for j in range(n):
c[i][j] = 1.0 if i == j else 0.0