1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
den301095 [7]
3 years ago
14

Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has

already been declared, use a for loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j.
Mathematics
1 answer:
Inessa05 [86]3 years ago
7 0

Answer:

for(j = n; j > 0; j--)

System.out.print(\"*\");

Step-by-step explanation:

-A for loop is a repetition control structure.

-It allows the efficiency to write a loop that would otherwise be written a couple of times.

-The output is a single line comprising n asterisks,

-The number of asterisks printed will be equivalent to the n-value declared.

You might be interested in
Gilbert is graduating from college in twelve months, but he will need a loan in the amount of $5,125 for his last two semesters.
FrozenT [24]
<span>Stafford: $ 5,673.71 PLUS: $ 5,539.36</span>
8 0
3 years ago
Zack has 18 socks in his drawer. 6 are blue, 6 are red, and 6 are green. How many socks will he need to pull out to be sure he g
JulsSmile [24]

Step-by-step explanation:

two sock make one pair ..... so 2 blues socks

3 0
3 years ago
What could I have dropped?<br> A. my croissant<br> b. my phone<br> c. mountain dew
seropon [69]

Answer:

a croissant

Step-by-step explanation:

5 0
3 years ago
A/2(b+c)(d-e)^2 if a=-10, b=10, c=9, d=2, e=5
bearhunter [10]

Answer:

(-86)

Step-by-step explanation:

\frac{a}{2} (b + c) {(d - e)}^{2}  \\  \\  \frac{ - 10}{2} (10 + 9) {(2 - 5)}^{2}  \\  - 50  - 45 {( - 3)}^{2}  \\  - 50 - 45 (- 3)( - 3) \\  - 50 - 45 + 9 \\  - 95 + 9 = ( - 86)

8 0
3 years ago
Can someone help me with this problem involving factoring a trinomial and filling in a table? Steps 1, 2, and 3 please. Thank yo
oksano4ka [1.4K]

Step 1 involves you listing out all the ways to multiply to 56, and then adding up those factors. For instance, the first row has 1 and 56 which add to 57 in the third column. The second row has -1 + (-56) = -57. The third row has 2+28 = 30. And so on. The idea is to fill out the table completely with the other ways to have factors of 56 added up. The table is shown in the attached image below.

------------------

Step 2 then uses the table to figure out which pair of factors (of 56) add to -15. This would be -7 and -8. In other words,

-7 plus -8 = -15

-7 times -8 = 56

We have found the right pair of numbers. In the table I have provided, this is shown as the highlighted yellow row.

------------------

Step 3 is then using those pair of numbers found in step 2 to set up the factorization. We would say that x^2-15x+56 factors to (x-7)(x-8). This is the same as (x-8)(x-7) as we can multiply two numbers in any order we want.

6 0
3 years ago
Other questions:
  • What is the solution of the equation 2/3 + 5x/3= 9 ?
    9·1 answer
  • Economists study the way society uses its resources. One important resource studied is agriculture. The recent increase in deman
    5·2 answers
  • What is 10 to the power of 30
    11·2 answers
  • Use technology to find the line of best fit for the following data. (−17,8), (−14,7), (−11,6), (−12,4), (−10,1), (−7,3), (−3,2),
    14·1 answer
  • Simplify by combining like terms 5x+3y+3+
    6·1 answer
  • 5.65 x 10 to the 5th power + 4.87 * 10 to the 3rd power​
    8·2 answers
  • A car can go from 0 m/s to 27 m/s in 4.5 seconds. If a net force of 6600 N acted on
    9·1 answer
  • 1. Solve the given quadratic equations by extracting square roots. Provide an extra sheet for your solutions.​
    12·2 answers
  • Square root of 342354456​
    13·2 answers
  • 12a-10b+6<br> Term:<br> Coefficient:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!