hand1ex1 - directory of your home area. Using one cd...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Handout One Extra Exercise To start make sure you are in the root directory of your home area, remember you can simply type ‘ cd then press ‘ Enter ’ to take you there. Make a new directory called ‘ hand1temp ’ inside your ‘ fortran ’ directory but do this without chang- ing into the fortran directory Frst. Copy your ‘ power3.f90 ’ code from your ‘ exercise4 ’ into the new ‘ hand1temp ’ but again do this while remaining in the root directory of your home area and also using a single ‘ cp ’ command. Rename the Fle from ‘ power3.f90 ’ to ‘ power3sum.f90 ’ again do this while remaining in the root
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: directory of your home area. Using one cd command change directory into the new hand1temp directory. Using the nano editor open the Fle power3sum.f90 for editing. Introduce a new INTEGER type variable c and in the code set c to be the second power of a . Introduce a new INTEGER type variable d and set d to be the sum of the two powers. Now add c and d to the PRINT statement to show the result. Compile and run the new code. 1...
View Full Document

This note was uploaded on 02/13/2012 for the course MATH 5806 taught by Professor Brooks during the Fall '10 term at Minnesota.

Ask a homework question - tutors are online