Monday, August 8, 2011

How to do fortran program?

Write a Fortran program that uses an array to set each diagonal element of a matrix to 1, and the others to 0. Use the PARAMETER keyword to set the dimension of the array. Print out the matrix in a suitable form.

No comments:

Post a Comment