Question: Write a Fortran program that creates an integer array with values -123, -4, 5, 67, 890, and 12345. Prints out the array in several formatted

 Write a Fortran program that creates an integer array with values

Write a Fortran program that creates an integer array with values -123, -4, 5, 67, 890, and 12345. Prints out the array in several formatted ways. a. Print each element, on its own line, using a field that is 3 wide. b. Print each element, on its own line, using a field that is 4 wide. c. Print each element, on its own line, using a field that is 5 wide. d. Print each element, on its own line, using a field that is only as wide as needed. e. Print all six elements on one line, giving each a field that is 8 wide, using the repeat operator in your format statement. Be sure to understand why each number printed the way it did

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!