Question: Please answer this for me. This is Java Declare an int type variable named asterisks Write a formula that adds the number of asterisks in

Please answer this for me. This is Java

Declare an int type variable named asterisks

Write a formula that adds the number of asterisks in the individual lines of the pattern and assign the asterisks variable the formula. [Hint: Total number of asterisks depends upon the number of columns of stars! This is a simple formula.]

Separated by two blank lines from the above pattern printing, print the following added information to the console arranged exactly as shown in Figure 4:

The number of * symbols in the lines of the pattern are

1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1

The total number of * symbols in the pattern is:

Figure 4

Please answer this for me. This is Java Declare an int type

Message The total number of *symbols in the pattern is: 36

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!