Question: 2. Write the code to take a String and print it diagonally. Sample run: Enter a string: bought b o u g h t Use
2. Write the code to take a String and print it diagonally.
Sample run:
Enter a string: bought b o u g h t
Use a tab character for every four spaces in the sample.
Hint: You may need more than one loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
