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
The area of a triangle that has a base of 7 and a height of 17 is:
Andru [333]

Answer:

59.5

Step-by-step explanation:

First we have to multiply 7 by 17 (7x17).

Then you have to divide it by 2.

1/2 X base x height

8 0
1 year ago
Hey can some one help me with this
Leno4ka [110]
Hello!

First you have to find the surface area of what he is painting

Finding the areas of all the rectangles he is painting

14 * 8 = 112
14 * 8 = 112
12 * 8 = 96
12 * 8 = 96
12 * 14 = 168

Add all these up

112 + 112 + 96 + 96 + 168 = 584

Divide this by the amount of area a pint of paint covers

584 / 90 = 6.4888...

He needs 7 pints of paint because he needs more than 6

Multiply this by the cost of 1 pint of pint

7 * 7.98 = 55.86

The answer is $55.86

Hope this helps!
3 0
3 years ago
Read 2 more answers
Help me out please!<br> No links please I’ll report you<br> Show work!<br> I’ll give brainiest
Jet001 [13]
Itz the second choice
4 0
3 years ago
In the diagram A, B, and C are the points on the circle. Use the diagram to prove the theorem which states that:
nevsk [136]

9514 1404 393

Explanation:

Here's one way to go at it.

Draw segments AB and CO. Define angles as follows. (The triangles with sides that are radii are all isosceles, so their base angles are congruent.)

  x = angle OAB = angle OBA

  y = angle OAC = angle OCA

  z = angle OBC = angle OCB

Consider the angles at each of the points A, B, C.

At A, we have ...

  angle CAB = x + y

At B, we have ...

  angle CBA = x + z

At C, we have ...

  angle ACB = y + z

The sum of the angles of triangle ABC is 180°, as is the sum of angles in triangle ABO. This gives ...

  x + x + ∠AOB = (x+y) +(x+z) +(y+z)

  ∠AOB = 2(y+z) = 2∠ACB

This shows ∠AOB = 2×∠C, as required.

8 0
3 years ago
PLZZZZ HELP IM FAILING THIS CLASS I NEED THISSS!?
lina2011 [118]

Answer:

the answer should be 12 or 3/4

4 0
3 years ago
Other questions:
  • The cost of pumpkin seeds is proportional to
    14·1 answer
  • What is halfway between 1/3 and 1/2
    6·2 answers
  • Help please ..............
    7·2 answers
  • What is 3/8 -1/8 plz help me !!!!!
    10·1 answer
  • The ratio between Frances and Carolina's weight is 8: 7, if Carolina weighs 168 pounds, how much does Frances weigh?
    9·1 answer
  • PLEASE HELPPPPPJohn and Kathy are shopping for their first home. Between the two of them, they feel they can afford a $1400 mont
    11·1 answer
  • The value of the digit 9 in the number 349320 is 10 times the value of the digit 9 in which number
    5·1 answer
  • Coral bleaching can be hazardous to some fish species because coral reefs provide unique habitats for fish
    13·1 answer
  • Will give brainliest.
    5·2 answers
  • I don't exactly remember how to do this
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!