Collaborative Assignment: Consider
- uses a parameter that is equal to 4 and is used in the declarations for A and B;
- uses DATA statements to assign the values to the elements of A and B;
- prints, in a reasonable format, A and B;
- computes and prints the products AB and BA; and,
- computes the prints the product ABBA.
-
Write a FORTRAN assignment that prompts the user to enter the four elements of a vector X and computes the products AX and BX and prints the result. Check your program using
- Write a FORTRAN program that computes the product AB (you may copy this part from the collaborative program above), then interchanges the 3rd and 4th rows and prints the result.