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
Kerstin has a square tile. The perimeter of the tile is 32 inches. What is the length of the tile?
Troyanec [42]
If it is a square all sides are equal, so the perimeter is equal to 4 times the length of one side...

4s=32

s=8in
4 0
3 years ago
Read 2 more answers
A mechanic ground 6 valves in 25 minutes. At that rate,
pickupchik [31]

Answer:

3hours and 12.5 minutes

Step-by-step explanation:

45/6=7.5x25=187.5/60=3hours and 12.5 minutes

5 0
3 years ago
The area of the square hole is 8 square centimeters. The volume of a cube shaped block is 64 cubic centimeters. Which edge lengt
damaskus [11]

<u> case a)</u> The area of the square hole is 8 square centimeters

we know that

the area of a square is equal to

A=b^{2}

where

b is the length side of the square

in this problem we have

A=8\ cm^{2}

<u>Find the length side b</u>

b^{2} = 8 \\b= \sqrt{8} \ cm\\b= 2\sqrt{2} \ cm

<u>the answer Part a) is</u>

the length side of the square is 2\sqrt{2} \ cm

Part b) The volume of a cube shaped block is 64 cubic centimeters

we know that

the volume of a cube is equal to

V=b^{3}

where

b is the length side of the cube

in this problem we have

V=64\ cm^{3}

<u>Find the length side b</u>

b^{3} = 64 \\b= \sqrt[3]{64} \\b= 4\ cm

therefore

<u>the answer Part b) is</u>

the length side of the cube is 4\ cm

5 0
3 years ago
What is y if -5-(15y-1)=2(7y-16)-y
MrRissso [65]

Answer:-19=33y

Step-by-step explanation:

-5-15y-1=14y-32y

-19-15y=18y

18y+15y

-19=33y

3 0
3 years ago
he velocity function is v(t)=t2−5t+6 for a particle moving along a line. Find the displacement and the distance traveled by the
antiseptic1488 [7]

Answer:26.83

Step-by-step explanation:

We will be solving this question using integration. The question has been solved in the diagram

5 0
3 years ago
Other questions:
  • Kira has 9 bags of of shells. Each bag holds 9 shells. How many shells does Kira have?​
    11·2 answers
  • What are the zeros of f(x)=x^2+3x-10
    14·2 answers
  • Factorise 15x-5 <br> factorise x^2-5x+6
    9·1 answer
  • If 78 sit-ups is done in 2 minutes how many can be done in 5 minutes
    7·2 answers
  • What is the absolute value of -4-2i
    8·2 answers
  • Nine times the sum of a number and 4 is 2
    7·1 answer
  • PLEASE HELP ASAP PLEASE​
    5·1 answer
  • Plot the point, (−3, 5).<br><br> Select the point tool. Then, click on the graph to plot the point
    10·1 answer
  • Can someone explain and answer this
    13·1 answer
  • PLSS HELP ASP Nick bought raffle tickets to try to win a prize. He paid $3.00 for $12 tickets.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!