HOMEWORK 0

 

The first homework is to help get started with Unix and Fortran. A reference to Unix commands can be found here.

Compile, link and run the following program

real x

integer j,n

n=100

do j=1,n

x=j**2

write(*,*) j,x

end do

stop

end

What does the above program do? Modify the above program to do odd values of j only i.e j=1,3,5 etc.