Question: Need to be written in C++ 1. Write a code segment that adds up the positive integers, starting at 1, until the sum equals or
Need to be written in C++
1. Write a code segment that adds up the positive integers, starting at 1, until the sum equals or exceeds a value read from the keyboard, and then prints the last integer added to the sum. Use a Do-While loop to do the summing.
2. Write a nested For loop that prints out a multiplication table for the integers 1 through 10.
3. Write a nested For loop that prints a filled right triangle of stars, one star on the first line, two on the next, and so on, up to the tenth line having ten stars.
4. Rewrite the nested loop in Exercise 8 with Do-While loops.
5. Rewrite the nested loop in Exercise 8 with While loops.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
