Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+15 votes

how would we approach BJP4 Exercise 3.18: vertical?

asked in CSC211_Winter2018 by (1 point)

1 Answer

+12 votes

The basic idea is you want to pull each letter out of any given phrase and print in every line. So you want to use a for loop to do that. To get a letter out, you can you string class method substring to print it. So you want an index1 and index2 to get the letter you want. You can start with 0 and end with the index of the last letter, which you could get by finding the length of the entire phrase.

answered by (1 point)
...