In this exercise, you will modify the code from Exercise 10. If necessary, create a new project
Question:
In this exercise, you will modify the code from Exercise 10. If necessary, create a new project named ModifyThis11 Project, and save it in the Cpp8\Chap08 folder. Enter (or copy) the TryThis10.cpp instructions into a new source file named ModifyThis11.cpp. Change TryThis10.cpp in the first comment to ModifyThis11.cpp. Replace the while and do while statements with for statements. Save and then run the program.
Data from Exercise 10
In this exercise, you will create a program that displays the pattern of asterisks shown in Figure 8-26. Use the while statement for the outer loop. Use the do while statement for the nested loop. If necessary, create a new project named TryThis10 Project, and save it in the Cpp8\Chap08 folder. Enter the C++ instructions into a source file named TryThis10.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Save and then run the program.
Step by Step Answer: