If I understand what you're trying to accomplish, which is to create a square zero-matrix, then the following does what you want:
n = Input[];
mat = ConstantArray[0, {n, n}];
Det[mat]
(* 0 *)
There's no earthly reason to use a Fortran-like (or Matlab-like) do loop.
Moreover, if you're filling the matrix with 0's, you would surely already know its determinant will be 0,