I've been given this problem and I need to use a loop to create these patterns. I remember using a while loop and im not very familiar with a for loop. the programming language here is java. i'm more familiar with python and even with that language i struggled to do this.  how do i use a loop to create these patterns? was the while loop the wrong idea and maybe i should've for looped it?   here are the instructions i was given, i cant seem to create the pattern Printing a single character at a time create loops to  Print the following patterns: Pattern 1: * ** *** ****   Pattern 2    *    ***  *****  ***     *   Pattern 3 1010101  10101    101      1

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question

I've been given this problem and I need to use a loop to create these patterns. I remember using a while loop and im not very familiar with a for loop. the programming language here is java.

i'm more familiar with python and even with that language i struggled to do this. 

how do i use a loop to create these patterns?

was the while loop the wrong idea and maybe i should've for looped it?

 

here are the instructions i was given, i cant seem to create the pattern

Printing a single character at a time create loops to  Print the following patterns:

Pattern 1:
*
**
***
****
 
Pattern 2
   *  
 *** 
*****
 *** 
   *  

Pattern 3
1010101
 10101 
  101  
   1 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,