Hello
I have to write a for loop, to iterate through an array and output the contents of the array (see below). I know how to write the code for the iteration but am having a problem with the output.
The output should go
mortgageType [1] = array contents.
mortgageType [2] = array contents.
I can get the array index to print out ( but cannot get the others to print on the same line. Any ideas?
Also, I have one loop and am wondering should I have 2?
Any help gratefully received.
I have to write a for loop, to iterate through an array and output the contents of the array (see below). I know how to write the code for the iteration but am having a problem with the output.
The output should go
mortgageType [1] = array contents.
mortgageType [2] = array contents.
I can get the array index to print out ( but cannot get the others to print on the same line. Any ideas?
Also, I have one loop and am wondering should I have 2?
Any help gratefully received.