C++ Code Using all for loops 1. Print 5 lines with 1 asterisk per line 2. Print 5...

80.2K

Verified Solution

Question

Programming

C++ Code

Using all for loops

1. Print 5 lines with 1 asterisk per line

2. Print 5 asterisk on 1 line. Endl at the end of the line.

3. Ask for a positive # and print that many asterik on the nextline.

4. Using 2 for loops one inside of another that only prints 1asterik, print a hill shaped triangle:

Ex( Input a number a: 4

*

**

***

****

5. Change the for statements to print the triangle upsidedown.

Answer & Explanation Solved by verified expert
4.4 Ratings (878 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students